Streaming Percentiles 3.1.0 Released

Streaming Percentiles 3.1.0 Released

Version 3.1.0 of the streaming percentiles library has been released.

The streaming percentiles library is a cross-platform, multi-language (C++ and JavaScript) implementation of a number of online (single-pass) percentile algorithms. This version of the streaming percentiles library adds support for copy construction, assignment, move construction, and move assignment on all analytics classes.

This change allows you to put streaming analytics classes into STL containers, such as:

#include <vector>
#include <stmpct/gk.hpp>

std::vector<stmpct::gk<double>> algs;
for (auto& g : algs) {
    for (int i = 0; i < 1000; ++i) {

    double p95 = g.quantile(0.95); // Approx. 95th percentile for current epsilon

It also allows you to efficiently move the state of an algorithm from one object to another without copying, as in:

stmpct::gk<double> g1(0.01);
// Do stuff with g1
auto g2 = std::move(g1);
// g2 now has the previous state of g1, and g1 is now in an unspecified state

To download the latest version of the streaming percentiles library (including documentation), visit, or get it from NPM at