|
Statistics
1.0.0
A C++17 for profiling and constant time statistical calculation
|
A modern C++ header-only library to calculate various statistics on a set of data
To build and run the unit tests:
The library itself is a single header only. You can use the included CMake in a subdirectory and add the interface library, or just copy the statistics.h file (and license) into your project.
The Statistics object keeps incremental statistical information about a set of data. Operations work in constant time, with a fixed (and small) memory footprint.
+= or insert functions to add samples to the populationcount() - the number of samples in the population.min() - minimum valued sample in the population.max() - maximum valued sample in the population.mean() - average of the population.sum() - the sum of all samples in the population.variance() - the variance of the population.standardDeviation() - the standard deviation of the population.