Subject: | Wrong name for variance / sampleVariance? |
Date: | Wed, 24 Jun 2020 04:52:51 -0700 |
To: | bug-Math-StdDev [...] rt.cpan.org |
From: | Rodrigo Fonseca <rodrigo.fonseca [...] gmail.com> |
Hi,
First of all, thank you for the module, this is a very cool way of
incrementally computing the variance / standard deviation of a set of
numbers.
This issue is with naming: while the calculations are correct, what the
methods variance and sampleVariance return is actually the standard
deviation / sample standard deviation, as you take the square root of the
variance before returning.
The correct thing would be to:
1. still call the methods variance and sampleVariance, but remove the
square root from the code (**.5) OR
2. call the methods stdDev and sampleStdDev
Thanks,
Rodrigo Fonseca