#include <var.hh>
Inherits mln::accu::internal::base< mln::algebra::mat< T::dim, T::dim, float >, mln::accu::stat::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. | |
template<typename T> | |
void | take_as_init (const T &t) |
Take as initialization the value t . | |
template<typename 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. |
Parameter T
is the type of vectors
typedef algebra::vec<dim,float> mln::accu::stat::var< T >::mean_t |
Type equipment.
void mln::accu::stat::var< T >::init | ( | ) | [inline] |
Manipulators.
bool mln::accu::stat::var< T >::is_valid | ( | ) | const [inline] |
Check whether this accu returns a valid result.
var< T >::mean_t mln::accu::stat::var< T >::mean | ( | ) | const [inline] |
unsigned mln::accu::stat::var< T >::n_items | ( | ) | const [inline] |
Get the number of items.
void mln::Accumulator< E >::take_as_init | ( | const T & | t | ) | [inline, inherited] |
Take as initialization the value t
.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
Reimplemented in mln::accu::stat::variance< T, S, R >.
References mln::mln_exact().
void mln::Accumulator< E >::take_n_times | ( | unsigned | n, | |
const T & | t | |||
) | [inline, inherited] |
Take n
times the value t
.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
References mln::mln_exact().
var< T >::result mln::accu::stat::var< T >::to_result | ( | ) | const [inline] |
Get the accumulator result (the var value).
References mln::literal::zero.
Referenced by mln::accu::stat::var< T >::variance().
var< T >::result mln::accu::stat::var< T >::variance | ( | ) | const [inline] |