Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
mln::accu::stat::median_h< V > Struct Template Reference

Generic median function based on histogram over a value set with type V. More...

#include <median_h.hh>

Inheritance diagram for mln::accu::stat::median_h< V >:
Inheritance graph

Public Member Functions

bool is_valid () const
 Check whether this accu is able to return a result.
 
void take_as_init (const T &t)
 Take as initialization the value t.
 
void take_n_times (unsigned n, const T &t)
 Take n times the value t.
 
const argument & to_result () const
 Get the value of the accumulator.
 
void init ()
 Manipulators.
 

Detailed Description

template<typename V>
struct mln::accu::stat::median_h< V >

Generic median function based on histogram over a value set with type V.

Definition at line 82 of file median_h.hh.

Member Function Documentation

template<typename V >
void median_h< V >::init ( )
inline

Manipulators.

Definition at line 267 of file median_h.hh.

template<typename V >
bool median_h< V >::is_valid ( ) const
inline

Check whether this accu is able to return a result.

Always true here.

Definition at line 299 of file median_h.hh.

void mln::Accumulator< median_h< V > >::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_h< V > >::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 '_').

template<typename V >
const median_h< V >::argument & median_h< V >::to_result ( ) const
inline

Get the value of the accumulator.

Definition at line 281 of file median_h.hh.