Var accumulator class. More...
#include <var.hh>
Inherits base< algebra::mat< T::dim, T::dim, float >, var< T > >.
Public Types | |
| typedef algebra::vec< dim, float > | mean_t |
| Type equipment. | |
Public Member Functions | |
| bool | is_valid () const |
| Check whether this accu returns a valid result. | |
| mean_t | mean () const |
| Get the mean vector. | |
| unsigned | n_items () const |
| Get the number of items. | |
| void | take_as_init (const T &t) |
Take as initialization the value t. | |
| void | take_n_times (unsigned n, const T &t) |
Take n times the value t. | |
| result | to_result () const |
| Get the accumulator result (the var value). | |
| result | variance () const |
| Get the variance matrix. | |
| void | init () |
| Manipulators. | |
Var accumulator class.
Parameter T is the type of vectors
Definition at line 58 of file accu/stat/var.hh.
| typedef algebra::vec<dim,float> mln::accu::stat::var< T >::mean_t |
Type equipment.
Definition at line 88 of file accu/stat/var.hh.
| void mln::accu::stat::var< T >::init | ( | ) | [inline] |
Manipulators.
Definition at line 118 of file accu/stat/var.hh.
| bool mln::accu::stat::var< T >::is_valid | ( | ) | const [inline] |
Check whether this accu returns a valid result.
Definition at line 213 of file accu/stat/var.hh.
| var< T >::mean_t mln::accu::stat::var< T >::mean | ( | ) | const [inline] |
Get the mean vector.
Definition at line 200 of file accu/stat/var.hh.
References mln::literal::zero.
| unsigned mln::accu::stat::var< T >::n_items | ( | ) | const [inline] |
Get the number of items.
Definition at line 192 of file accu/stat/var.hh.
| void mln::Accumulator< var< T > >::take_as_init | ( | const T & | t | ) | [inherited] |
Take as initialization the value t.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
| void mln::Accumulator< var< T > >::take_n_times | ( | unsigned | n, | |
| const T & | t | |||
| ) | [inherited] |
Take n times the value t.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
| var< T >::result mln::accu::stat::var< T >::to_result | ( | ) | const [inline] |
Get the accumulator result (the var value).
Definition at line 168 of file accu/stat/var.hh.
References mln::literal::zero.
| var< T >::result mln::accu::stat::var< T >::variance | ( | ) | const [inline] |
Get the variance matrix.
Definition at line 184 of file accu/stat/var.hh.
1.7.1