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

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

Public Member Functions

min< V >::result first () const
min< V > first_accu () const
bool is_valid () const
max< V >::result second () const
max< V > second_accu () const
subj_ ()
template<typename T >
void take_as_init (const T &t)
template<typename T >
void take_as_init_ (const T &t)
template<typename T >
void take_n_times (unsigned n, const T &t)
template<typename T >
void take_n_times_ (unsigned n, const T &t)
void init ()
void take_as_init_ (const argument &t)
void take (const argument &t)
void take (const pair< min< V >, max< V >, mln_argument(min< V >) > &other)
std::pair< typename min< V >
::result, typename max< V >
::result
to_result () const
void get_result (result_1 &r1, result_2 &r2) const

Protected Attributes

min< V > a1_
max< V > a2_

Public Types

typedef mln_argument(min< V >) argument
typedef Accumulator< void > category
typedef E exact_t
typedef R q_result
typedef mln::metal::unqualif
< R >::ret 
result
typedef min< V >::result result_1
typedef max< V >::result result_2

Detailed Description

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

Generic min and max accumulator class.

The parameter V is the type of values.

Definition at line 61 of file accu/stat/min_max.hh.

Member Function Documentation

min< V > ::result mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::first ( ) const
inherited

Return the result of the first accumulator.

min< V > mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::first_accu ( ) const
inherited

Return the first accumulator.

void mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::get_result ( result_1 r1,
result_2 r2 
) const
inherited
void mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::init ( )
inherited

Manipulators.

bool mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::is_valid ( ) const
inherited

Check whether this accu is able to return a result.

Always true here.

max< V > ::result mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::second ( ) const
inherited

Return the result of the second accumulator.

max< V > mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::second_accu ( ) const
inherited

Return the second accumulator.

template<typename R, typename E>
R mln::accu::internal::base< R, E >::subj_ ( )
inherited
void mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::take ( const argument t)
inherited
void mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::take ( const pair< min< V > , max< V > , mln_argument(min< V > ) > &  other)
inherited
template<typename E>
template<typename T >
void mln::Accumulator< E >::take_as_init ( const T t)
inherited

Take as initialization the value t.

Reimplemented in mln::accu::stat::variance< T, S, R >.

void mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::take_as_init_ ( const argument t)
inherited

INTERNAL_API

Default implementation of "take as initialization".

template<typename E>
template<typename T >
void mln::Accumulator< E >::take_as_init_ ( const T t)
inherited
template<typename E>
template<typename T >
void mln::Accumulator< E >::take_n_times ( unsigned  n,
const T t 
)
inherited

Take n times the value t.

template<typename E>
template<typename T >
void mln::Accumulator< E >::take_n_times_ ( unsigned  n,
const T t 
)
inherited

INTERNAL_API

Default implementation of "take n times".

Reimplemented in mln::accu::stat::var< T >.

std::pair<typename min< V > ::result, typename max< V > ::result> mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::to_result ( ) const
inherited

Get the value of the accumulator.

Member Data Documentation

min< V > mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::a1_
protectedinherited

Definition at line 100 of file pair.hh.

max< V > mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::a2_
protectedinherited

Definition at line 101 of file pair.hh.

Member Typedef Documentation

typedef mln_argument(min< V > ) mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::argument
inherited

Definition at line 61 of file pair.hh.

template<typename E>
typedef Accumulator<void> mln::Accumulator< E >::category
inherited

Definition at line 64 of file accumulator.hh.

template<typename E>
typedef E mln::Object< E >::exact_t
inherited

Definition at line 105 of file object.hh.

template<typename R, typename E>
typedef R mln::accu::internal::base< R, E >::q_result
inherited

Definition at line 58 of file base.hh.

template<typename R, typename E>
typedef mln::metal::unqualif< R >::ret mln::accu::internal::base< R, E >::result
inherited

Definition at line 59 of file base.hh.

typedef min< V > ::result mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::result_1
inherited

Definition at line 63 of file pair.hh.

typedef max< V > ::result mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::result_2
inherited

Definition at line 64 of file pair.hh.