views:

71

answers:

2

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.

+6  A: 

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.

hobbs
+1 Great minds think alike and all that.
Sinan Ünür
That was exactly what I was looking for thanks!!
Jeremy Wall
A: 

You can use RSPerl module that interfaces with the R statistics package.

Ty
That package is not pure perl thus doesn't fit the question.
Jeremy Wall