Class for keeping statistics of a continuously sampled process / signal. Useful if the storage of individual samples is not necessary or desired. Also useful if the number of samples is not known beforehand or exceeds available memory. More...
#include <running_stat_proto.hpp>
Public Types | |
typedef get_pod_type< eT >::result | T |
Public Member Functions | |
~running_stat () | |
running_stat () | |
void | operator() (const T sample) |
void | operator() (const std::complex< T > &sample) |
void | reset () |
set all statistics to zero | |
eT | mean () const |
mean or average value | |
T | var (const u32 norm_type=0) const |
variance | |
T | stddev (const u32 norm_type=0) const |
standard deviation | |
eT | min () const |
minimum value | |
eT | max () const |
maximum value | |
Private Attributes | |
arma_aligned arma_counter< T > | counter |
arma_aligned eT | r_mean |
arma_aligned T | r_var |
arma_aligned eT | min_val |
arma_aligned eT | max_val |
arma_aligned T | min_val_norm |
arma_aligned T | max_val_norm |
Friends | |
class | running_stat_aux |
Class for keeping statistics of a continuously sampled process / signal. Useful if the storage of individual samples is not necessary or desired. Also useful if the number of samples is not known beforehand or exceeds available memory.
Definition at line 52 of file running_stat_proto.hpp.
typedef get_pod_type<eT>::result running_stat< eT >::T |
Definition at line 56 of file running_stat_proto.hpp.
void running_stat< eT >::operator() | ( | const T | sample | ) | [inline] |
void running_stat< eT >::operator() | ( | const std::complex< T > & | sample | ) | [inline] |
friend class running_stat_aux [friend] |
Definition at line 92 of file running_stat_proto.hpp.
arma_aligned arma_counter<T> running_stat< eT >::counter [private] |
Definition at line 80 of file running_stat_proto.hpp.
Referenced by running_stat< eT >::reset(), running_stat_aux::update_stats(), and running_stat< eT >::var().
arma_aligned eT running_stat< eT >::r_mean [private] |
Definition at line 82 of file running_stat_proto.hpp.
Referenced by running_stat< eT >::mean(), running_stat< eT >::reset(), and running_stat_aux::update_stats().
arma_aligned T running_stat< eT >::r_var [private] |
Definition at line 83 of file running_stat_proto.hpp.
Referenced by running_stat< eT >::reset(), running_stat_aux::update_stats(), and running_stat< eT >::var().
arma_aligned eT running_stat< eT >::min_val [private] |
Definition at line 85 of file running_stat_proto.hpp.
Referenced by running_stat< eT >::min(), running_stat< eT >::reset(), and running_stat_aux::update_stats().
arma_aligned eT running_stat< eT >::max_val [private] |
Definition at line 86 of file running_stat_proto.hpp.
Referenced by running_stat< eT >::max(), running_stat< eT >::reset(), and running_stat_aux::update_stats().
arma_aligned T running_stat< eT >::min_val_norm [private] |
Definition at line 88 of file running_stat_proto.hpp.
Referenced by running_stat< eT >::reset().
arma_aligned T running_stat< eT >::max_val_norm [private] |
Definition at line 89 of file running_stat_proto.hpp.
Referenced by running_stat< eT >::reset().