Download the PHP package wikimedia/running-stat without Composer
On this page you can find all versions of the php package wikimedia/running-stat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wikimedia/running-stat
More information about wikimedia/running-stat
Files in wikimedia/running-stat
Package running-stat
Short Description PHP implementations of online statistical algorithms
License GPL-2.0-or-later
Homepage https://www.mediawiki.org/wiki/RunningStat
Informations about the package running-stat
RunningStat
RunningStat computes the central tendency, shape, and extrema of a set of points online, in constant space. It uses a neat one-pass algorithm for calculating variance, described here: https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#On-line_algorithm
This particular implementation adapts a sample C++ implementation by John D. Cook to PHP. See also:
RunningStat instances can be combined. The resultant RunningStat has the same state it would have had if it had been used to accumulate each point. This property is attractive because it allows separate threads of execution to process a stream in parallel. More importantly, individual points can be accumulated in stages, without loss of fidelity, at intermediate points in the aggregation process. JavaScript profiling samples can be accumulated in the user's browser and be combined with measurements from other browsers on the profiling data aggregator. Functions that are called multiple times in the course of a profiled web request can be accumulated in MediaWiki prior to being transmitted to the profiling data aggregator.
Usage
Here is how you use it:
License
GPL-2.0-or-later