You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2023/12/27 23:01:29 UTC
(commons-statistics) 02/03: Use the double value of n
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-statistics.git
commit 5c729a6dbe3a8917189af345c8bcce839ea9f57b
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Wed Dec 27 22:05:59 2023 +0000
Use the double value of n
---
.../apache/commons/statistics/descriptive/SumOfFourthDeviations.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-statistics-descriptive/src/main/java/org/apache/commons/statistics/descriptive/SumOfFourthDeviations.java b/commons-statistics-descriptive/src/main/java/org/apache/commons/statistics/descriptive/SumOfFourthDeviations.java
index 522aa34..8b4081f 100644
--- a/commons-statistics-descriptive/src/main/java/org/apache/commons/statistics/descriptive/SumOfFourthDeviations.java
+++ b/commons-statistics-descriptive/src/main/java/org/apache/commons/statistics/descriptive/SumOfFourthDeviations.java
@@ -158,7 +158,7 @@ class SumOfFourthDeviations extends SumOfCubedDeviations {
sumFourthDev = sumFourthDev -
sc * nDev * 8 +
ss * nDev * nDev * 24 +
- np * (np1 * np1 - 3 * np) * nDev * nDev * nDev * nDev * n * 16;
+ np * (np1 * np1 - 3 * np) * nDev * nDev * nDev * nDev * np1 * 16;
}
/**