Header-only collection of statistics utilities for C++14.
List of counters where the index of each counter is determined by mapping an input value to a range of bins of the same size.
List of counters where the index of each counter is determined by mapping an input value to a range of bins of non-uniform size (specified by their lower bounds).
List of counters with efficient partial sum (prefix sum) queries.
An accumulator provides running statistical analyses of a (growing) sample of values.
moments_accumulatormean_accumulator(running mean)variance_accumulator(includes running mean)skewness_accumulator(includes running mean & variance)kurtosis_accumulator(includes running mean, variance & skewness)
comparative_accumulatormin_accumulatormax_accumulator
reversible_comparative_accumulator(supports undo/pop operation)reversible_min_accumulatorreversible_max_accumulator
min_max_moments_accumulatorreversible_min_max_moments_accumulator
All accumulators have the following members:
using
//reset accumulator
accumulator::clear();
accumulator::operator = (const argument_type&);
//add sample to statistics
accumulator::push(const argument_type&);
accumulator::operator += (const argument_type&);Reversible accumulators also have:
//remove value from statistics
accumulator::pop(const argument_type&);
accumulator::operator -= (const argument_type&);windowed<Accumulator>restricts statistics to the n latest samplesreversible<Accumulator>augments an accumulator with an undo historycombined<Accumulators...>combines several accumulators into one
histogram_accumulatoraugments a histogram with an accumulator interface
- requires C++14 conforming compiler
- tested with g++ 5.3.1