$extrastylesheet
#include <mln/accu/stat/median_h.hh>
Public Member Functions | |
median_h () | |
unsigned | card () const |
const accu::histo< V > & | histo () const |
bool | is_valid () const |
median_h & | operator= (const median_h &rhs) |
const V & | 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 argument & | to_result () const |
void | init () |
void | take (const argument &t) |
void | take (const median_h< V > &other) |
void | untake (const argument &t) |
Protected Member Functions | |
void | go_minus_ () const |
void | go_plus_ () const |
void | update_ () const |
Protected Attributes | |
accu::histo< V > | h_ |
unsigned | i_ |
const value::set< V > & | s_ |
unsigned | sum_minus_ |
unsigned | sum_plus_ |
argument | t_ |
bool | valid_ |
Public Types | |
typedef V | argument |
typedef Accumulator< void > | category |
typedef median_h< V > | exact_t |
typedef const V & | q_result |
typedef mln::metal::unqualif < const V & >::ret | result |
Generic median function based on histogram over a value set with type V
.
Definition at line 82 of file median_h.hh.
mln::accu::stat::median_h< V >::median_h | ( | ) |
|
inline |
Definition at line 97 of file median_h.hh.
|
protected |
|
protected |
const accu::histo<V>& mln::accu::stat::median_h< V >::histo | ( | ) | const |
void mln::accu::stat::median_h< V >::init | ( | ) |
Manipulators.
bool mln::accu::stat::median_h< V >::is_valid | ( | ) | const |
Check whether this accu is able to return a result.
Always true here.
median_h& mln::accu::stat::median_h< V >::operator= | ( | const median_h< V > & | rhs | ) |
|
inherited |
void mln::accu::stat::median_h< V >::take | ( | const argument & | t | ) |
void mln::accu::stat::median_h< V >::take | ( | const median_h< V > & | 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 argument& mln::accu::stat::median_h< V >::to_result | ( | ) | const |
Get the value of the accumulator.
void mln::accu::stat::median_h< V >::untake | ( | const argument & | t | ) |
|
protected |
|
mutableprotected |
Definition at line 110 of file median_h.hh.
|
mutableprotected |
Definition at line 116 of file median_h.hh.
|
protected |
Definition at line 111 of file median_h.hh.
|
mutableprotected |
Definition at line 113 of file median_h.hh.
|
mutableprotected |
Definition at line 113 of file median_h.hh.
|
mutableprotected |
Definition at line 117 of file median_h.hh.
|
mutableprotected |
Definition at line 115 of file median_h.hh.
typedef V mln::accu::stat::median_h< V >::argument |
Definition at line 84 of file median_h.hh.
|
inherited |
Definition at line 64 of file accumulator.hh.
|
inherited |
|
inherited |