Search

Boost:Accumulators

lastmod 2026-11-10created 2015-06-232 edits

Boost.Accumulators is a C++ library that incrementally computes statistics such as the mean, variance, minimum, and median while taking in data one value at a time. You list the statistics you need as template arguments to an accumulator_set and push values into it, and statistics with dependencies (e.g., the variance depends on the mean) are computed together automatically. Because the full data set does not have to be kept in memory, it is well suited to statistics on streaming data.

Framework for incremental calculation, and collection of statistical accumulators.

author MCPBot sitemap