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_vec_proto.hpp>
Public Types | |
typedef get_pod_type< eT >::result | T |
Public Member Functions | |
~running_stat_vec () | |
running_stat_vec (const bool in_calc_cov=false) | |
running_stat_vec (const running_stat_vec &in_rsv) | |
const running_stat_vec & | operator= (const running_stat_vec &in_rsv) |
template<typename T1 > | |
arma_hot void | operator() (const Base< T, T1 > &X) |
template<typename T1 > | |
arma_hot void | operator() (const Base< std::complex< T >, T1 > &X) |
void | reset () |
set all statistics to zero | |
const Mat< eT > & | mean () const |
mean or average value | |
const Mat< T > & | var (const u32 norm_type=0) |
variance | |
Mat< T > | stddev (const u32 norm_type=0) const |
standard deviation | |
const Mat< eT > & | cov (const u32 norm_type=0) |
covariance | |
const Mat< eT > & | min () const |
vector with minimum values | |
const Mat< eT > & | max () const |
vector with maximum values | |
template<typename T1 > | |
arma_hot void | operator() (const Base< typename get_pod_type< eT >::result, T1 > &X) |
update statistics to reflect new sample | |
template<typename T1 > | |
arma_hot void | operator() (const Base< std::complex< typename get_pod_type< eT >::result >, T1 > &X) |
update statistics to reflect new sample (version for complex numbers) | |
Private Attributes | |
const bool | calc_cov |
arma_aligned arma_counter< T > | counter |
arma_aligned Mat< eT > | r_mean |
arma_aligned Mat< T > | r_var |
arma_aligned Mat< eT > | r_cov |
arma_aligned Mat< eT > | min_val |
arma_aligned Mat< eT > | max_val |
arma_aligned Mat< T > | min_val_norm |
arma_aligned Mat< T > | max_val_norm |
arma_aligned Mat< T > | r_var_dummy |
arma_aligned Mat< eT > | r_cov_dummy |
arma_aligned Mat< eT > | tmp1 |
arma_aligned Mat< eT > | tmp2 |
Friends | |
class | running_stat_vec_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 27 of file running_stat_vec_proto.hpp.
typedef get_pod_type<eT>::result running_stat_vec< eT >::T |
Definition at line 31 of file running_stat_vec_proto.hpp.
arma_hot void running_stat_vec< eT >::operator() | ( | const Base< T, T1 > & | X | ) | [inline] |
arma_hot void running_stat_vec< eT >::operator() | ( | const Base< std::complex< T >, T1 > & | X | ) | [inline] |
friend class running_stat_vec_aux [friend] |
Definition at line 79 of file running_stat_vec_proto.hpp.
const bool running_stat_vec< eT >::calc_cov [private] |
Definition at line 59 of file running_stat_vec_proto.hpp.
Referenced by running_stat_vec< eT >::cov(), running_stat_vec< eT >::operator=(), and running_stat_vec_aux::update_stats().
arma_aligned arma_counter<T> running_stat_vec< eT >::counter [private] |
Definition at line 61 of file running_stat_vec_proto.hpp.
Referenced by running_stat_vec< eT >::cov(), running_stat_vec< eT >::operator=(), running_stat_vec< eT >::reset(), running_stat_vec< eT >::stddev(), running_stat_vec_aux::update_stats(), and running_stat_vec< eT >::var().
arma_aligned Mat<eT> running_stat_vec< eT >::r_mean [private] |
Definition at line 63 of file running_stat_vec_proto.hpp.
Referenced by running_stat_vec< eT >::cov(), running_stat_vec< eT >::mean(), running_stat_vec< eT >::operator=(), running_stat_vec< eT >::reset(), running_stat_vec_aux::update_stats(), and running_stat_vec< eT >::var().
arma_aligned Mat< T> running_stat_vec< eT >::r_var [private] |
Definition at line 64 of file running_stat_vec_proto.hpp.
Referenced by running_stat_vec< eT >::operator=(), running_stat_vec< eT >::reset(), running_stat_vec< eT >::stddev(), running_stat_vec_aux::update_stats(), and running_stat_vec< eT >::var().
arma_aligned Mat<eT> running_stat_vec< eT >::r_cov [private] |
Definition at line 65 of file running_stat_vec_proto.hpp.
Referenced by running_stat_vec< eT >::cov(), running_stat_vec< eT >::operator=(), running_stat_vec< eT >::reset(), and running_stat_vec_aux::update_stats().
arma_aligned Mat<eT> running_stat_vec< eT >::min_val [private] |
Definition at line 67 of file running_stat_vec_proto.hpp.
Referenced by running_stat_vec< eT >::min(), running_stat_vec< eT >::operator=(), running_stat_vec< eT >::reset(), and running_stat_vec_aux::update_stats().
arma_aligned Mat<eT> running_stat_vec< eT >::max_val [private] |
Definition at line 68 of file running_stat_vec_proto.hpp.
Referenced by running_stat_vec< eT >::max(), running_stat_vec< eT >::operator=(), running_stat_vec< eT >::reset(), and running_stat_vec_aux::update_stats().
arma_aligned Mat< T> running_stat_vec< eT >::min_val_norm [private] |
Definition at line 70 of file running_stat_vec_proto.hpp.
Referenced by running_stat_vec< eT >::operator=(), and running_stat_vec< eT >::reset().
arma_aligned Mat< T> running_stat_vec< eT >::max_val_norm [private] |
Definition at line 71 of file running_stat_vec_proto.hpp.
Referenced by running_stat_vec< eT >::operator=(), and running_stat_vec< eT >::reset().
arma_aligned Mat< T> running_stat_vec< eT >::r_var_dummy [private] |
Definition at line 73 of file running_stat_vec_proto.hpp.
Referenced by running_stat_vec< eT >::reset(), and running_stat_vec< eT >::var().
arma_aligned Mat<eT> running_stat_vec< eT >::r_cov_dummy [private] |
Definition at line 74 of file running_stat_vec_proto.hpp.
Referenced by running_stat_vec< eT >::cov(), and running_stat_vec< eT >::reset().
arma_aligned Mat<eT> running_stat_vec< eT >::tmp1 [private] |
Definition at line 76 of file running_stat_vec_proto.hpp.
Referenced by running_stat_vec< eT >::reset(), and running_stat_vec_aux::update_stats().
arma_aligned Mat<eT> running_stat_vec< eT >::tmp2 [private] |
Definition at line 77 of file running_stat_vec_proto.hpp.
Referenced by running_stat_vec< eT >::reset(), and running_stat_vec_aux::update_stats().