Fork/Refactor of PEAR's Math Stats + Math Histogram
To test, run:
make install make test
This project is intented to replace both Math Stats and Math Histogram, which were meant to be installed with PEAR. These were their descriptions
Package to calculate statistical parameters of numerical arrays of data. The data can be in a simple numerical array, or in a cummulative numerical array. A cummulative array, has the value as the index and the number of repeats as the value for the array item, e.g. $data = [ 3 => 4, 2.3 => 5, 1.25 => 6, 0.5 => 3]. Nulls can be rejected, ignored or handled as zero values.
These classes can be used to calculate histogram distributions of data sets.
The Math_Histogram class computes histograms from unidimensional data sets. These are also known as 2D historgrams, and can be computed in the regular binned frequency or as cummulative frequency.
Similarly, the Math_Histogram3D and Math_Histogram4D classes compute distributions from bi- and tri-dimensional data sets (respectively), both in regular frequency and cummulative frequency modes.
This package requires the Math_Stats package, so if you do not have it installed, you need to do:
pear install Math_Stats
before you can start using Math_Histogram in your scripts.
--- Jesus M. Castagnetto