karouani / javasimon

Automatically exported from code.google.com/p/javasimon
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

org.javasimon.Stopwatch#getStandardDeviation better returns unbiased standard deviation #116

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently standard deviation returned is "uncorrected sample standard 
deviation" (calculated from varianceN - of the entire population). While 
Javadoc states this more or less clearly, it is probably expected to be aligned 
with variance (unbiased, corrected one).

This is more in line with other libs, e.g. 
org.apache.commons.math3.stat.descriptive.SummaryStatistics#getStandardDeviation
. Previous values can still be calculated with sqrt(varianceN).

Original issue reported on code.google.com by virgo47 on 1 Feb 2014 at 11:12