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

#include <mln/core/concept/accumulator.hh>

Public Member Functions

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)

Protected Member Functions

 Accumulator ()

Public Types

typedef Accumulator< void > category
typedef E exact_t

Detailed Description

template<typename E>
struct mln::Accumulator< E >

Base class for implementation of accumulators.

The parameter E is the exact type.

Definition at line 62 of file accumulator.hh.

Constructor & Destructor Documentation

template<typename E>
mln::Accumulator< E >::Accumulator ( )
protected

Member Function Documentation

template<typename E>
template<typename T >
void mln::Accumulator< E >::take_as_init ( const T t)

Take as initialization the value t.

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

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

Take n times the value t.

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

INTERNAL_API

Default implementation of "take n times".

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

Member Typedef Documentation

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

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.