Class
AccumulatorAccumulator base class.
Accumulator base class.
All Subcl's | AverageAccumulator |
---|---|
Defined in | <seqan/misc/accumulators.h> |
Signature |
template <typename TValue, typename TSpec>
struct Accumulator;
|
Interface Function Overview
-
void clear(acc);
Clear the current accumulator state. -
void push(acc, x);
Include value into sequence of values to accumulate.
Interface Metafunction Overview
-
Result<TAccumulator>::Type;
Return the type for accumulation results. -
Value<TAccumulator>::Type;
Return the type of the values to accumulate.
Detailed Description
Accumulators are for computing statistics on streams of values.
Currently, this is only meant for accumulating integers.
Interface Functions Detail
void clear(acc);
Clear the current accumulator state.
Parameters
acc
|
The Accumulator to clear. |
---|
void push(acc, x);
Include value into sequence of values to accumulate.
Parameters
acc
|
The Accumulator to push the value to. |
---|---|
x
|
The value to include in the accumulation (IntegerConcept). |