From 1b6a0f9c9ecff1184281d52499791c54ac62691a Mon Sep 17 00:00:00 2001 From: aherbert Date: Wed, 9 Jun 2021 16:23:40 +0100 Subject: [PATCH] Remove dead local store --- .../examples/sofm/chineserings/ChineseRingsClassifier.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/commons-math-examples/examples-sofm/chinese-rings/src/main/java/org/apache/commons/math4/examples/sofm/chineserings/ChineseRingsClassifier.java b/commons-math-examples/examples-sofm/chinese-rings/src/main/java/org/apache/commons/math4/examples/sofm/chineserings/ChineseRingsClassifier.java index 4f1c39e7d..7a07686fc 100644 --- a/commons-math-examples/examples-sofm/chinese-rings/src/main/java/org/apache/commons/math4/examples/sofm/chineserings/ChineseRingsClassifier.java +++ b/commons-math-examples/examples-sofm/chinese-rings/src/main/java/org/apache/commons/math4/examples/sofm/chineserings/ChineseRingsClassifier.java @@ -140,11 +140,10 @@ class ChineseRingsClassifier { centre[1].getMean(), centre[2].getMean() }; - final double s = 0.1; final double[] dev = new double[] { - s * centre[0].getStandardDeviation(), - s * centre[1].getStandardDeviation(), - s * centre[2].getStandardDeviation() + 0.1 * centre[0].getStandardDeviation(), + 0.1 * centre[1].getStandardDeviation(), + 0.1 * centre[2].getStandardDeviation() }; final UniformRandomProvider rng = RandomSource.create(RandomSource.SPLIT_MIX_64);