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

Var accumulator class. More...

#include <var.hh>

Inherits base< algebra::mat< T::dim, T::dim, float >, 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.
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.


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.

void mln::Accumulator< var< T > >::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 '_').

void mln::Accumulator< var< T > >::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 '_').

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.

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

Get the variance matrix.


Generated on Tue Jul 14 16:32:49 2009 for Milena (Olena) by  doxygen 1.5.9