Skip to main content

SingleAccumulator

Base class for all accumulators.

Factories

accumulator(const string accumulator_name) -> SingleAccumulator

Factory for constructing accumulators.

Parameters

  • accumulator_name: Name of accumulator to be constructed.

accumulator(const string accumulator_name, const Map parameters) -> SingleAccumulator

Factory for constructing accumulators.

Parameters

  • accumulator_name: Name of accumulator to be constructed.
  • parameters: Parameters for the accumulator.

Members

NameDescription
accumulateAccumulates the given value.
bin_sizeReturns the bin size of the accumulator.
bin_sumReturns the sum of elements in the currently open bin.
countReturns the number of elements in the currently open bin.
estimateReturns the estimated mean of the accumulated values.
has_open_binReturns true if the accumulator currently has an open bin.
num_valuesReturns the number of values in the accumulator.
valuesReturns the values stored in the accumulator.