#include <median_alt.hh>
Public Types | |
typedef value::set< T >::value | argument |
typedef Accumulator< void > | category |
typedef median_alt< value::set < T > > | exact_t |
typedef const value::set< T > ::value & | q_result |
typedef mln::metal::unqualif < const value::set< T >::value & > ::ret | result |
Public Member Functions | |
void | debug__ () const |
bool | is_valid () const |
Check whether this accu is able to return a result. | |
median_alt_on () | |
const value::set< T >::value & | subj_ () |
void | take_as_init (const T &t) |
Take as initialization the value t . | |
void | take_as_init_ (const T &t) |
Default implementation of "take as initialization". | |
void | take_n_times (unsigned n, const T &t) |
Take n times the value t . | |
void | take_n_times_ (unsigned n, const T &t) |
Default implementation of "take n times". | |
const argument & | to_result () const |
Get the value of the accumulator. | |
void | take (const argument &t) |
Manipulators. | |
void | untake (const argument &t) |
void | init () |
Protected Member Functions | |
void | go_minus_ () |
void | go_plus_ () |
Protected Attributes | |
histo< value::set< T > > | h_ |
unsigned | i_ |
the median index | |
const value::set< T > & | s_ |
derived from h_ | |
unsigned | sum_minus_ |
unsigned | sum_plus_ |
argument | t_ |
the median argument |
typedef value::set< T > ::value mln::accu::stat::median_alt< value::set< T > >::argument [inherited] |
typedef Accumulator<void> mln::Accumulator< median_alt< value::set< T > > >::category [inherited] |
Reimplemented from mln::Proxy< median_alt< value::set< T > > >.
typedef median_alt< value::set< T > > mln::Object< median_alt< value::set< T > > >::exact_t [inherited] |
typedef const value::set< T >::value & mln::accu::internal::base< const value::set< T >::value & , median_alt< value::set< T > > >::q_result [inherited] |
typedef mln::metal::unqualif< const value::set< T >::value & >::ret mln::accu::internal::base< const value::set< T >::value & , median_alt< value::set< T > > >::result [inherited] |
mln::accu::stat::median_alt_on< T >::median_alt_on | ( | ) | [inline] |
void mln::accu::stat::median_alt< value::set< T > >::debug__ | ( | ) | const [inline, inherited] |
void mln::accu::stat::median_alt< value::set< T > >::go_minus_ | ( | ) | [protected, inherited] |
void mln::accu::stat::median_alt< value::set< T > >::go_plus_ | ( | ) | [protected, inherited] |
void mln::accu::stat::median_alt< value::set< T > >::init | ( | ) | [inherited] |
bool mln::accu::stat::median_alt< value::set< T > >::is_valid | ( | ) | const [inherited] |
Check whether this accu is able to return a result.
Always true here.
const value::set< T >::value & mln::accu::internal::base< const value::set< T >::value & , median_alt< value::set< T > > >::subj_ | ( | ) | [inherited] |
void mln::accu::stat::median_alt< value::set< T > >::take | ( | const argument & | t | ) | [inherited] |
Manipulators.
void mln::Accumulator< median_alt< value::set< T > > >::take_as_init | ( | const T & | t | ) | [inherited] |
Take as initialization the value t
.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
void mln::Accumulator< median_alt< value::set< T > > >::take_as_init_ | ( | const T & | t | ) | [inherited] |
Default implementation of "take as initialization".
void mln::Accumulator< median_alt< value::set< T > > >::take_n_times | ( | unsigned | n, | |
const T & | t | |||
) | [inherited] |
Take n
times the value t
.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
void mln::Accumulator< median_alt< value::set< T > > >::take_n_times_ | ( | unsigned | n, | |
const T & | t | |||
) | [inherited] |
Default implementation of "take n times".
const argument& mln::accu::stat::median_alt< value::set< T > >::to_result | ( | ) | const [inherited] |
Get the value of the accumulator.
void mln::accu::stat::median_alt< value::set< T > >::untake | ( | const argument & | t | ) | [inherited] |
histo<value::set< T > > mln::accu::stat::median_alt< value::set< T > >::h_ [protected, inherited] |
unsigned mln::accu::stat::median_alt< value::set< T > >::i_ [protected, inherited] |
the median index
const value::set< T > & mln::accu::stat::median_alt< value::set< T > >::s_ [protected, inherited] |
derived from h_
unsigned mln::accu::stat::median_alt< value::set< T > >::sum_minus_ [protected, inherited] |
unsigned mln::accu::stat::median_alt< value::set< T > >::sum_plus_ [protected, inherited] |
argument mln::accu::stat::median_alt< value::set< T > >::t_ [protected, inherited] |
the median argument