$extrastylesheet
#include <mln/accu/stat/var.hh>
Public Member Functions | |
var () | |
bool | is_valid () const |
mean_t | mean () const |
unsigned | n_items () const |
algebra::mat< T::dim, T::dim, float > | subj_ () |
void | take_as_init (const T &t) |
void | take_n_times (unsigned n, const T &t) |
result | to_result () const |
result | variance () const |
void | init () |
void | take (const argument &v) |
void | take (const var< T > &other) |
void | take_as_init_ (const argument &v) |
void | take_n_times_ (unsigned n_times, const argument &v) |
Protected Attributes | |
algebra::mat< dim, dim, float > | cov_ |
unsigned | n_ |
algebra::vec< dim, float > | sum_ |
Public Types | |
enum | { dim = T::dim } |
typedef T | argument |
typedef Accumulator< void > | category |
typedef var< T > | exact_t |
typedef algebra::vec< dim, float > | mean_t |
typedef algebra::mat< T::dim, T::dim, float > | q_result |
typedef algebra::mat< dim, dim, float > | result |
Var accumulator class.
Parameter T
is the type of vectors
Definition at line 58 of file accu/stat/var.hh.
mln::accu::stat::var< T >::var | ( | ) |
void mln::accu::stat::var< T >::init | ( | ) |
Manipulators.
bool mln::accu::stat::var< T >::is_valid | ( | ) | const |
Check whether this accu returns a valid result.
mean_t mln::accu::stat::var< T >::mean | ( | ) | const |
Get the mean vector.
unsigned mln::accu::stat::var< T >::n_items | ( | ) | const |
Get the number of items.
|
inherited |
void mln::accu::stat::var< T >::take | ( | const argument & | v | ) |
void mln::accu::stat::var< T >::take | ( | const var< T > & | other | ) |
|
inherited |
Take as initialization the value t
.
void mln::accu::stat::var< T >::take_as_init_ | ( | const argument & | t | ) |
INTERNAL_API
Default implementation of "take as initialization".
Reimplemented from mln::Accumulator< var< T > >.
|
inherited |
Take n
times the value t
.
void mln::accu::stat::var< T >::take_n_times_ | ( | unsigned | n, |
const argument & | t | ||
) |
INTERNAL_API
Default implementation of "take n times".
Reimplemented from mln::Accumulator< var< T > >.
result mln::accu::stat::var< T >::to_result | ( | ) | const |
Get the accumulator result (the var value).
result mln::accu::stat::var< T >::variance | ( | ) | const |
Get the variance matrix.
|
protected |
Definition at line 101 of file accu/stat/var.hh.
|
protected |
Definition at line 99 of file accu/stat/var.hh.
|
protected |
Definition at line 100 of file accu/stat/var.hh.
typedef T mln::accu::stat::var< T >::argument |
Definition at line 62 of file accu/stat/var.hh.
|
inherited |
Definition at line 64 of file accumulator.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.
|
inherited |
typedef algebra::mat<dim,dim,float> mln::accu::stat::var< T >::result |
Definition at line 63 of file accu/stat/var.hh.
anonymous enum |
Definition at line 61 of file accu/stat/var.hh.