$extrastylesheet
#include <mln/accu/stat/rank.hh>
Public Member Functions | |
| rank () | |
| rank (unsigned k) | |
| unsigned | card () const |
| bool | is_valid () const |
| unsigned | k () const |
| const T & | subj_ () |
| 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) |
| const T & | to_result () const |
| void | init () |
| void | take (const argument &t) |
| void | take (const rank< T > &other) |
| void | untake (const argument &t) |
| void | untake (const rank< T > &other) |
Protected Member Functions | |
| void | go_minus_ () const |
| void | go_plus_ () const |
| void | update_ () const |
Protected Attributes | |
| accu::histo< T > | h_ |
| unsigned | i_ |
| unsigned | k_ |
| const S & | s_ |
| unsigned | sum_minus_ |
| unsigned | sum_plus_ |
| argument | t_ |
| bool | valid_ |
Public Types | |
| typedef T | argument |
| typedef Accumulator< void > | category |
| typedef rank< T > | exact_t |
| typedef const T & | q_result |
| typedef mln::metal::unqualif < const T & >::ret | result |
| typedef mln::value::set< T > | S |
Generic rank accumulator class.
The parameter T is the type of values.
| mln::accu::stat::rank< T >::rank | ( | ) |
|
explicit |
|
inline |
|
protected |
|
protected |
| void mln::accu::stat::rank< T >::init | ( | ) |
Manipulators.
| bool mln::accu::stat::rank< T >::is_valid | ( | ) | const |
Check whether this accu is able to return a result.
Always true here.
| unsigned mln::accu::stat::rank< T >::k | ( | ) | const |
Give the rank.
|
inherited |
| void mln::accu::stat::rank< T >::take | ( | const argument & | t | ) |
| void mln::accu::stat::rank< T >::take | ( | const rank< T > & | 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".
| const T& mln::accu::stat::rank< T >::to_result | ( | ) | const |
Get the value of the accumulator.
| void mln::accu::stat::rank< T >::untake | ( | const argument & | t | ) |
| void mln::accu::stat::rank< T >::untake | ( | const rank< T > & | other | ) |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
| typedef T mln::accu::stat::rank< T >::argument |
|
inherited |
Definition at line 64 of file accumulator.hh.
| typedef mln::value::set<T> mln::accu::stat::rank< T >::S |