mln::accu::stat::var< T > Struct Template Reference
[On values]

Var accumulator class. More...

#include <var.hh>

Inherits mln::accu::internal::base< mln::algebra::mat< T::dim, T::dim, float >, mln::accu::stat::var< T > >.

List of all members.

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.


Detailed Description

template<typename T>
struct mln::accu::stat::var< T >

Var accumulator class.

Parameter T is the type of vectors


Member Typedef Documentation

template<typename T>
typedef algebra::vec<dim,float> mln::accu::stat::var< T >::mean_t

Type equipment.


Member Function Documentation

template<typename T>
void mln::accu::stat::var< T >::init (  )  [inline]

Manipulators.

template<typename T>
bool mln::accu::stat::var< T >::is_valid (  )  const [inline]

Check whether this accu returns a valid result.

template<typename T>
var< T >::mean_t mln::accu::stat::var< T >::mean (  )  const [inline]

Get the mean vector.

References mln::literal::zero.

template<typename T>
unsigned mln::accu::stat::var< T >::n_items (  )  const [inline]

Get the number of items.

template<typename E>
template<typename T>
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().

template<typename E>
template<typename T>
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().

template<typename T>
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().

template<typename T>
var< T >::result mln::accu::stat::var< T >::variance (  )  const [inline]

Get the variance matrix.

References mln::accu::stat::var< T >::to_result().


Generated on Thu Sep 9 19:31:43 2010 for Milena (Olena) by  doxygen 1.5.6