Fix stddev campionaria

This commit is contained in:
2025-02-05 09:47:33 +01:00
parent f591de5a06
commit 7de4e80bb0

View File

@@ -37,7 +37,7 @@ public class StatisticsSummary {
this.name = name; this.name = name;
this.values = values; this.values = values;
this.average = avg; this.average = avg;
this.stdDev = Math.sqrt(varianceSum / values.length); this.stdDev = Math.sqrt(varianceSum / (values.length - 1));
this.median = this.getPercentile(0.50); this.median = this.getPercentile(0.50);
this.min = values[0]; this.min = values[0];
this.max = values[values.length - 1]; this.max = values[values.length - 1];