$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::accu::stat::var< T > Struct Template Reference

#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, floatcov_
unsigned n_
algebra::vec< dim, floatsum_

Public Types

enum  { dim = T::dim }
typedef T argument
typedef Accumulator< void > category
typedef var< Texact_t
typedef algebra::vec< dim, floatmean_t
typedef algebra::mat< T::dim,
T::dim, float
q_result
typedef algebra::mat< dim, dim,
float
result

Detailed Description

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

Var accumulator class.

Parameter T is the type of vectors

Definition at line 58 of file accu/stat/var.hh.

Constructor & Destructor Documentation

template<typename T>
mln::accu::stat::var< T >::var ( )

Member Function Documentation

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

Manipulators.

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

Check whether this accu returns a valid result.

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

Get the mean vector.

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

Get the number of items.

algebra::mat< T::dim, T::dim, float > mln::accu::internal::base< algebra::mat< T::dim, T::dim, float > , var< T > >::subj_ ( )
inherited
template<typename T>
void mln::accu::stat::var< T >::take ( const argument v)
template<typename T>
void mln::accu::stat::var< T >::take ( const var< T > &  other)
void mln::Accumulator< var< T > >::take_as_init ( const T t)
inherited

Take as initialization the value t.

template<typename 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 > >.

void mln::Accumulator< var< T > >::take_n_times ( unsigned  n,
const T t 
)
inherited

Take n times the value t.

template<typename 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 > >.

template<typename T>
result mln::accu::stat::var< T >::to_result ( ) const

Get the accumulator result (the var value).

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

Get the variance matrix.

Member Data Documentation

template<typename T>
algebra::mat<dim,dim,float> mln::accu::stat::var< T >::cov_
protected

Definition at line 101 of file accu/stat/var.hh.

template<typename T>
unsigned mln::accu::stat::var< T >::n_
protected

Definition at line 99 of file accu/stat/var.hh.

template<typename T>
algebra::vec<dim,float> mln::accu::stat::var< T >::sum_
protected

Definition at line 100 of file accu/stat/var.hh.

Member Typedef Documentation

template<typename T>
typedef T mln::accu::stat::var< T >::argument

Definition at line 62 of file accu/stat/var.hh.

typedef Accumulator<void> mln::Accumulator< var< T > >::category
inherited

Definition at line 64 of file accumulator.hh.

typedef var< T > mln::Object< var< T > >::exact_t
inherited

Definition at line 105 of file object.hh.

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

Type equipment.

Definition at line 88 of file accu/stat/var.hh.

typedef algebra::mat< T::dim, T::dim, float > mln::accu::internal::base< algebra::mat< T::dim, T::dim, float > , var< T > >::q_result
inherited

Definition at line 58 of file base.hh.

template<typename T>
typedef algebra::mat<dim,dim,float> mln::accu::stat::var< T >::result

Definition at line 63 of file accu/stat/var.hh.

Member Enumeration Documentation

template<typename T>
anonymous enum
Enumerator:
dim 

Definition at line 61 of file accu/stat/var.hh.