mpottinger / p2-1

An implementation of the P^2 algorithm by Jain et al

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is an implementation of the P^2 algorithm as described in the paper "The P^2 Algorithm for Dynamic Calculation of Quantiles and Histograms Without Storing Observations" by Raj Jain and Imrich Chlamtac. It's based on Aaron Small's implementation.

I wrote this as part of my research into algorithms for computing quantiles without storing every observations. Other interesting resources:

  • Algorithm to dynamically monitor quantiles on StackOverflow
  • "Monitoring Networked Applications With Incremental Quantile Estimation" by Chambers et al describes an alternative algorithm, one which is specifically designed for distributed data collection and aggregation. An implementation of this algorithm ("IQAgent") is described in "Numerical Recipes" by Press et al, section 8.5.2.

About

An implementation of the P^2 algorithm by Jain et al

License:MIT License


Languages

Language:C++ 100.0%