#include <var.hh>

Public Types | |
| enum | { dim = T::dim } |
| typedef T | argument |
| typedef Accumulator< void > | category |
| typedef E | exact_t |
| typedef algebra::vec< dim, float > | mean_t |
| Type equipment. | |
| typedef R | q_result |
| typedef algebra::mat< dim, dim, float > | result |
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. | |
| R | subj_ () |
| 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). | |
| var () | |
| result | variance () const |
| Get the variance matrix. | |
| void | init () |
| Manipulators. | |
| void | take (const var< T > &other) |
| void | take (const argument &v) |
| void | take_as_init_ (const argument &v) |
| Default implementation of "take as initialization". | |
| void | take_n_times_ (unsigned n_times, const argument &v) |
| Default implementation of "take n times". | |
Protected Attributes | |
| algebra::mat< dim, dim, float > | cov_ |
| unsigned | n_ |
| algebra::vec< dim, float > | sum_ |
Parameter T is the type of vectors
Definition at line 58 of file accu/stat/var.hh.
| typedef T mln::accu::stat::var< T >::argument |
Definition at line 62 of file accu/stat/var.hh.
typedef Accumulator<void> mln::Accumulator< E >::category [inherited] |
typedef E mln::Object< E >::exact_t [inherited] |
| typedef algebra::vec<dim,float> mln::accu::stat::var< T >::mean_t |
typedef R mln::accu::internal::base< R, E >::q_result [inherited] |
| typedef algebra::mat<dim,dim,float> mln::accu::stat::var< T >::result |
Reimplemented from mln::accu::internal::base< R, E >.
Definition at line 63 of file accu/stat/var.hh.
| anonymous enum |
| mln::accu::stat::var< T >::var | ( | ) | [inline] |
| void mln::accu::stat::var< T >::init | ( | ) | [inline] |
Manipulators.
Definition at line 118 of file accu/stat/var.hh.
References mln::accu::stat::var< T >::cov_, mln::accu::stat::var< T >::n_, mln::algebra::mat< n, m, T >::set_all(), mln::algebra::vec< n, T >::set_all(), and mln::accu::stat::var< T >::sum_.
Referenced by mln::accu::stat::var< T >::var().
| bool mln::accu::stat::var< T >::is_valid | ( | ) | const [inline] |
Check whether this accu returns a valid result.
Definition at line 213 of file accu/stat/var.hh.
References mln::accu::stat::var< T >::n_.
| var< T >::mean_t mln::accu::stat::var< T >::mean | ( | ) | const [inline] |
Get the mean vector.
Definition at line 200 of file accu/stat/var.hh.
References mln::accu::stat::var< T >::n_, mln::accu::stat::var< T >::sum_, and mln::literal::zero.
| unsigned mln::accu::stat::var< T >::n_items | ( | ) | const [inline] |
Get the number of items.
Definition at line 192 of file accu/stat/var.hh.
References mln::accu::stat::var< T >::n_.
| R base::subj_ | ( | ) | [inline, inherited] |
| void mln::accu::stat::var< T >::take | ( | const var< T > & | other | ) | [inline] |
Definition at line 138 of file accu/stat/var.hh.
References mln::accu::stat::var< T >::cov_, and mln::accu::stat::var< T >::n_.
| void mln::accu::stat::var< T >::take | ( | const argument & | v | ) | [inline] |
Definition at line 128 of file accu/stat/var.hh.
References mln::accu::stat::var< T >::cov_, mln::accu::stat::var< T >::n_, mln::accu::stat::var< T >::sum_, and mln::algebra::mat< n, m, T >::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 >.
Definition at line 186 of file accumulator.hh.
References mln::exact(), and mln::mln_exact().
Referenced by mln::morpho::elementary::impl::gradient_on_function(), and mln::morpho::elementary::impl::gradient_on_function_fastest().
| void mln::accu::stat::var< T >::take_as_init_ | ( | const argument & | t | ) | [inline] |
Default implementation of "take as initialization".
Reimplemented from mln::Accumulator< E >.
Definition at line 147 of file accu/stat/var.hh.
References mln::accu::stat::var< T >::cov_, mln::accu::stat::var< T >::n_, mln::accu::stat::var< T >::sum_, and mln::algebra::mat< n, m, T >::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 '_').
Definition at line 213 of file accumulator.hh.
References mln::exact(), and mln::mln_exact().
| void mln::accu::stat::var< T >::take_n_times_ | ( | unsigned | n, | |
| const argument & | t | |||
| ) | [inline] |
Default implementation of "take n times".
Reimplemented from mln::Accumulator< E >.
Definition at line 157 of file accu/stat/var.hh.
References mln::accu::stat::var< T >::cov_, mln::accu::stat::var< T >::n_, mln::accu::stat::var< T >::sum_, and mln::algebra::mat< n, m, T >::t().
| var< T >::result mln::accu::stat::var< T >::to_result | ( | ) | const [inline] |
Get the accumulator result (the var value).
Definition at line 168 of file accu/stat/var.hh.
References mln::accu::stat::var< T >::cov_, mln::accu::stat::var< T >::n_, mln::accu::stat::var< T >::sum_, mln::algebra::vec< n, T >::t(), and mln::literal::zero.
Referenced by mln::accu::stat::var< T >::variance().
| var< T >::result mln::accu::stat::var< T >::variance | ( | ) | const [inline] |
Get the variance matrix.
Definition at line 184 of file accu/stat/var.hh.
References mln::accu::stat::var< T >::to_result().
algebra::mat<dim,dim,float> mln::accu::stat::var< T >::cov_ [protected] |
Definition at line 101 of file accu/stat/var.hh.
Referenced by mln::accu::stat::var< T >::init(), mln::accu::stat::var< T >::take(), mln::accu::stat::var< T >::take_as_init_(), mln::accu::stat::var< T >::take_n_times_(), and mln::accu::stat::var< T >::to_result().
unsigned mln::accu::stat::var< T >::n_ [protected] |
Definition at line 99 of file accu/stat/var.hh.
Referenced by mln::accu::stat::var< T >::init(), mln::accu::stat::var< T >::is_valid(), mln::accu::stat::var< T >::mean(), mln::accu::stat::var< T >::n_items(), mln::accu::stat::var< T >::take(), mln::accu::stat::var< T >::take_as_init_(), mln::accu::stat::var< T >::take_n_times_(), and mln::accu::stat::var< T >::to_result().
algebra::vec<dim,float> mln::accu::stat::var< T >::sum_ [protected] |
1.5.6