[alexandria-devel] generic mean, variance, median, standard-deviation

Nikodemus Siivola nikodemus at random-state.net
Fri Jan 20 15:37:00 UTC 2012


On 4 January 2012 13:36, Tamas Papp <tkpapp at gmail.com> wrote:

> I attach a patch for the mean and median, with a couple of new tests
> and a utility function for displacing.  I am happy to rewrite anything
> to conform to the style of Alexandria, let me know if that is
> necessary.  I will submit a patch for the variance soon.

Thanks, merged.

I tweaked it a bit, though, mostly to support generalized sequences,
and MEAN also to deal with fill pointers correctly.

> BTW, is anyone using the biased variance?  When a similar statistic is
> needed, it usually makes more sense to calculate the sum of squared
> errors (from the mean), and variance could always give the "unbiased"
> (/ sse (1- n)) statistic and have no keyword arguments.  Just a
> thought.

No idea, really.

Cheers,

 -- Nikodemus




More information about the alexandria-devel mailing list