Are there any prerolled streaming statistics libraries for Perl à la: http://en.wikipedia.org/wiki/Algorithms%5Ffor%5Fcalculating%5Fvariance#On-line%5Falgorithm
I haven't found anything on CPAN yet and I really don't want to have to code one myself.
Are there any prerolled streaming statistics libraries for Perl à la: http://en.wikipedia.org/wiki/Algorithms%5Ffor%5Fcalculating%5Fvariance#On-line%5Falgorithm
I haven't found anything on CPAN yet and I really don't want to have to code one myself.
You want Statistics::Descriptive. The regular "sparse" version of the module (not Statistics::Descriptive::Full) provides statistics that are available without storing the entire dataset; variance is one of them.