mln::Accumulator< E > Struct Template Reference

Base class for implementation of accumulators. More...

#include <accumulator.hh>

Inherits Proxy< E >.

List of all members.

Public Member Functions

template<typename T >
void take_as_init (const T &t)
 Take as initialization the value t.
template<typename T >
void take_n_times (unsigned n, const T &t)
 Take n times the value t.


Detailed Description

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

Base class for implementation of accumulators.

The parameter E is the exact type.

See also:
mln::doc::Accumulator for a complete documentation of this class contents.

Member Function Documentation

template<typename E >
template<typename T >
void mln::Accumulator< E >::take_as_init ( const T &  t  )  [inline]

Take as initialization the value t.

Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').

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 
) [inline]

Take n times the value t.

Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').


Generated on Tue Jul 14 16:32:16 2009 for Milena (Olena) by  doxygen 1.5.9