$extrastylesheet
#include <mln/accu/stat/mean.hh>
Public Member Functions | |
| mean () | |
| accu::math::count< T >::result | count () const |
| bool | is_valid () const |
| operator M () const | |
| M | subj_ () |
| accu::math::sum< T >::result | sum () const |
| void | take_as_init (const T &t) |
| 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) |
| M | to_result () const |
| void | init () |
| void | take (const argument &t) |
| void | take (const mean< T, S, M > &other) |
| void | untake (const argument &t) |
| void | untake (const mean< T, S, M > &other) |
Protected Attributes | |
| accu::math::count< T > | count_ |
| accu::math::sum< T, S > | sum_ |
Public Types | |
| typedef T | argument |
| typedef Accumulator< void > | category |
| typedef mean< T, S, M > | exact_t |
| typedef M | q_result |
| typedef M | result |
Generic mean accumulator class.
Parameter T is the type of values that we sum. Parameter S is the type to store the sum of values; the default type of S is the summation type (property) of T. Parameter M is the type of the mean value; the default type of M is S.
Definition at line 119 of file accu/stat/mean.hh.
| mln::accu::stat::mean< T, S, M >::mean | ( | ) |
| accu::math::count<T>::result mln::accu::stat::mean< T, S, M >::count | ( | ) | const |
Get the cardinality.
| void mln::accu::stat::mean< T, S, M >::init | ( | ) |
Manipulators.
| bool mln::accu::stat::mean< T, S, M >::is_valid | ( | ) | const |
Check whether this accu is able to return a result.
Always true here.
| mln::accu::stat::mean< T, S, M >::operator M | ( | ) | const |
|
inherited |
| accu::math::sum<T>::result mln::accu::stat::mean< T, S, M >::sum | ( | ) | const |
Get the sum of values.
| void mln::accu::stat::mean< T, S, M >::take | ( | const argument & | t | ) |
| void mln::accu::stat::mean< T, S, M >::take | ( | const mean< T, S, M > & | other | ) |
|
inherited |
Take as initialization the value t.
|
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".
| M mln::accu::stat::mean< T, S, M >::to_result | ( | ) | const |
Get the value of the accumulator.
| void mln::accu::stat::mean< T, S, M >::untake | ( | const argument & | t | ) |
| void mln::accu::stat::mean< T, S, M >::untake | ( | const mean< T, S, M > & | other | ) |
|
protected |
Definition at line 151 of file accu/stat/mean.hh.
|
protected |
Definition at line 152 of file accu/stat/mean.hh.
| typedef T mln::accu::stat::mean< T, S, M >::argument |
Definition at line 121 of file accu/stat/mean.hh.
|
inherited |
Definition at line 64 of file accumulator.hh.
|
inherited |
| typedef M mln::accu::stat::mean< T, S, M >::result |
Definition at line 122 of file accu/stat/mean.hh.