J.Pietschmann wrote:

5 Static functions for calculating higher moments for arrays are unwise,
because the array is repeatedly scanned if several moments are to be
computed. This should be encapsulated in an object which can hold already
computed results across invocations of different calculating routines.

The impementations are based on approaches which provide greater accuracy and reduced roundoff error (see papers referenced in javadoc),


You are correct however, there is an extra iteration over the array between the calc of the mean and the calc of variance. I can rectify this easily in the higher moments (which were copied straight out of the AbstractStoreUnivariate implementation.. But the two pass approach for variance and higher moments is on purpose. These can be corrected with out the drastic measer of completely removing them.

-Mark

--
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to