RunningStat/en

RunningStat is a PHP library for online statistical algorithms. The most recent version implements two useful algorithms. The first is an algorithm for estimating higher-order moments (variance and standard deviation) of a random variable without having to store individual observations. It also keeps track of the arithmetic mean and extrema (min and max). Together these measurements describe the central tendency and statistical dispersion of a population.

The second algorithm is the P-Square algorithm, as described in "The P-Square Algorithm for Dynamic Calculation of Percentiles and Histograms without Storing Observations," Communications of the ACM, October 1985 by R. Jain and I. Chlamtac.

Installing
To use it inside your application, simply run, or add a dependency in your.

If you prefer using git, that's also an option:, and autoload the library however you wish to.

If you wish to develop and contribute on the library, see developer account for gaining access to our code review system.