$extrastylesheet
#include <mln/accu/stat/variance.hh>
Public Member Functions | |
| variance () | |
| bool | is_valid () const |
| R | mean () const |
| unsigned | n_items () const |
| R | standard_deviation () const |
| R | subj_ () |
| S | sum () const |
| void | take_as_init_ (const T &t) |
| void | take_n_times (unsigned n, const T &t) |
| void | take_n_times_ (unsigned n, const T &t) |
| R | to_result () const |
| R | var () const |
| void | init () |
| void | take_as_init (const argument &t) |
| void | take (const argument &t) |
| void | take (const variance< T, S, R > &other) |
| void | take (unsigned n_times, const argument &t) |
Protected Attributes | |
| unsigned | n_ |
| S | sum2_ |
| S | sum_ |
Public Types | |
| typedef T | argument |
| typedef Accumulator< void > | category |
| typedef variance< T, S, R > | exact_t |
| typedef R | q_result |
| typedef R | result |
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.
| mln::accu::stat::variance< T, S, R >::variance | ( | ) |
| void mln::accu::stat::variance< T, S, R >::init | ( | ) |
Manipulators.
| bool mln::accu::stat::variance< T, S, R >::is_valid | ( | ) | const |
Check whether this accu is able to return a result.
Always true here.
| R mln::accu::stat::variance< T, S, R >::mean | ( | ) | const |
Get the mean value.
| unsigned mln::accu::stat::variance< T, S, R >::n_items | ( | ) | const |
Get the number of items.
| R mln::accu::stat::variance< T, S, R >::standard_deviation | ( | ) | const |
Get the standard deviation value.
|
inherited |
| S mln::accu::stat::variance< T, S, R >::sum | ( | ) | const |
Get the sum value.
| void mln::accu::stat::variance< T, S, R >::take | ( | const argument & | t | ) |
| void mln::accu::stat::variance< T, S, R >::take | ( | const variance< T, S, R > & | other | ) |
| void mln::accu::stat::variance< T, S, R >::take | ( | unsigned | n_times, |
| const argument & | t | ||
| ) |
| void mln::accu::stat::variance< T, S, R >::take_as_init | ( | const argument & | t | ) |
Take as initialization the value t.
Reimplemented from mln::Accumulator< variance< T, S, R > >.
|
inherited |
INTERNAL_API
Default implementation of "take as initialization".
|
inherited |
Take n times the value t.
|
inherited |
INTERNAL_API
Default implementation of "take n times".
| R mln::accu::stat::variance< T, S, R >::to_result | ( | ) | const |
Get the accumulator result (the variance value).
| R mln::accu::stat::variance< T, S, R >::var | ( | ) | const |
Get the variance value.
|
protected |
Definition at line 102 of file variance.hh.
|
protected |
Definition at line 103 of file variance.hh.
|
protected |
Definition at line 103 of file variance.hh.
| typedef T mln::accu::stat::variance< T, S, R >::argument |
Definition at line 63 of file variance.hh.
|
inherited |
Definition at line 64 of file accumulator.hh.
|
inherited |
| typedef R mln::accu::stat::variance< T, S, R >::result |
Definition at line 64 of file variance.hh.