#include <variance.hh>
Inherits mln::accu::internal::base< R, mln::accu::stat::variance< T, S, R > >.
Public Member Functions | |
| bool | is_valid () const |
| Check whether this accu is able to return a result. | |
| R | mean () const |
| Get the mean value. | |
| unsigned | n_items () const |
| Get the number of items. | |
| R | standard_deviation () const |
| Get the standard deviation value. | |
| S | sum () const |
| Get the sum value. | |
| template<typename T> | |
| void | take_n_times (unsigned n, const T &t) |
Take n times the value t. | |
| R | to_result () const |
| Get the accumulator result (the variance value). | |
| R | var () const |
| Get the variance value. | |
| void | init () |
| Manipulators. | |
| void | take_as_init (const argument &t) |
Take as initialization the value t. | |
Parameter T is the type of values that we sum. Parameter S is the type to store the value sum and the sum of value * value; the default type of S is the summation type (property) of T. Parameter R is the type of the mean and variance values; the default type of R is S.
| void mln::accu::stat::variance< T, S, R >::init | ( | ) | [inline] |
Manipulators.
| bool mln::accu::stat::variance< T, S, R >::is_valid | ( | ) | const [inline] |
Check whether this accu is able to return a result.
Always true here.
| R mln::accu::stat::variance< T, S, R >::mean | ( | ) | const [inline] |
| unsigned mln::accu::stat::variance< T, S, R >::n_items | ( | ) | const [inline] |
Get the number of items.
| R mln::accu::stat::variance< T, S, R >::standard_deviation | ( | ) | const [inline] |
| S mln::accu::stat::variance< T, S, R >::sum | ( | ) | const [inline] |
Get the sum value.
| void mln::accu::stat::variance< T, S, R >::take_as_init | ( | const argument & | t | ) | [inline] |
Take as initialization the value t.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
Reimplemented from mln::Accumulator< E >.
| 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().
| R mln::accu::stat::variance< T, S, R >::to_result | ( | ) | const [inline] |
Get the accumulator result (the variance value).
Referenced by mln::accu::stat::variance< T, S, R >::standard_deviation(), and mln::accu::stat::variance< T, S, R >::var().
| R mln::accu::stat::variance< T, S, R >::var | ( | ) | const [inline] |
1.5.6