|
Milena (Olena)
User documentation 2.0a Id
|
Variance accumulator class. More...
#include <variance.hh>
Inherits mln::accu::internal::base< R, 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. | |
| 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. | |
Variance accumulator class.
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
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. Definition at line 61 of file variance.hh.
|
inline |
|
inline |
Check whether this accu is able to return a result.
Always true here.
Definition at line 229 of file variance.hh.
|
inline |
|
inline |
Get the number of items.
Definition at line 205 of file variance.hh.
|
inline |
Get the standard deviation value.
Definition at line 221 of file variance.hh.
|
inline |
Get the sum value.
Definition at line 197 of file variance.hh.
|
inherited |
Take n times the value t.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
|
inline |
Get the accumulator result (the variance value).
Definition at line 176 of file variance.hh.
|
inline |
Get the variance value.
Definition at line 213 of file variance.hh.