$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::accu::stat::median_alt< S > Struct Template Reference

#include <mln/accu/stat/median_alt.hh>

Public Member Functions

 median_alt (const Value_Set< S > &s)
bool is_valid () const
const S::value & 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 argumentto_result () const
void take (const argument &t)
void untake (const argument &t)
void init ()

Protected Member Functions

void go_minus_ ()
void go_plus_ ()

Protected Attributes

histo< S > h_
unsigned i_
const S & s_
unsigned sum_minus_
unsigned sum_plus_
argument t_

Public Types

typedef S::value argument
typedef Accumulator< void > category
typedef median_alt< S > exact_t
typedef const S::value & q_result
typedef mln::metal::unqualif
< const S::value & >::ret 
result

Detailed Description

template<typename S>
struct mln::accu::stat::median_alt< S >

Generic median_alt function based on histogram over a value set with type S.

Definition at line 54 of file median_alt.hh.

Constructor & Destructor Documentation

template<typename S>
mln::accu::stat::median_alt< S >::median_alt ( const Value_Set< S > &  s)

Member Function Documentation

template<typename S>
void mln::accu::stat::median_alt< S >::go_minus_ ( )
protected
template<typename S>
void mln::accu::stat::median_alt< S >::go_plus_ ( )
protected
template<typename S>
void mln::accu::stat::median_alt< S >::init ( )
template<typename S>
bool mln::accu::stat::median_alt< S >::is_valid ( ) const

Check whether this accu is able to return a result.

Always true here.

const S::value & mln::accu::internal::base< const S::value & , median_alt< S > >::subj_ ( )
inherited
template<typename S>
void mln::accu::stat::median_alt< S >::take ( const argument t)

Manipulators.

void mln::Accumulator< median_alt< S > >::take_as_init ( const T t)
inherited

Take as initialization the value t.

void mln::Accumulator< median_alt< S > >::take_as_init_ ( const T t)
inherited

INTERNAL_API

Default implementation of "take as initialization".

void mln::Accumulator< median_alt< S > >::take_n_times ( unsigned  n,
const T t 
)
inherited

Take n times the value t.

void mln::Accumulator< median_alt< S > >::take_n_times_ ( unsigned  n,
const T t 
)
inherited

INTERNAL_API

Default implementation of "take n times".

template<typename S>
const argument& mln::accu::stat::median_alt< S >::to_result ( ) const

Get the value of the accumulator.

template<typename S>
void mln::accu::stat::median_alt< S >::untake ( const argument t)

Member Data Documentation

template<typename S>
histo<S> mln::accu::stat::median_alt< S >::h_
protected

Definition at line 76 of file median_alt.hh.

template<typename S>
unsigned mln::accu::stat::median_alt< S >::i_
protected

the median index

Definition at line 83 of file median_alt.hh.

template<typename S>
const S& mln::accu::stat::median_alt< S >::s_
protected

derived from h_

Definition at line 78 of file median_alt.hh.

template<typename S>
unsigned mln::accu::stat::median_alt< S >::sum_minus_
protected

Definition at line 80 of file median_alt.hh.

template<typename S>
unsigned mln::accu::stat::median_alt< S >::sum_plus_
protected

Definition at line 80 of file median_alt.hh.

template<typename S>
argument mln::accu::stat::median_alt< S >::t_
protected

the median argument

Definition at line 85 of file median_alt.hh.

Member Typedef Documentation

template<typename S>
typedef S ::value mln::accu::stat::median_alt< S >::argument

Definition at line 56 of file median_alt.hh.

typedef Accumulator<void> mln::Accumulator< median_alt< S > >::category
inherited

Definition at line 64 of file accumulator.hh.

typedef median_alt< S > mln::Object< median_alt< S > >::exact_t
inherited

Definition at line 105 of file object.hh.

typedef const S::value & mln::accu::internal::base< const S::value & , median_alt< S > >::q_result
inherited

Definition at line 58 of file base.hh.

typedef mln::metal::unqualif< const S::value & >::ret mln::accu::internal::base< const S::value & , median_alt< S > >::result
inherited

Definition at line 59 of file base.hh.