Repository: commons-math Updated Branches: refs/heads/MATH_3_X 74515ba6a -> 18310ed96
Fixed checkstyle warnings. Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/ace087b4 Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/ace087b4 Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/ace087b4 Branch: refs/heads/MATH_3_X Commit: ace087b4ed9357441fc671450be74643c9b4990e Parents: 74515ba Author: Luc Maisonobe <l...@apache.org> Authored: Fri Sep 11 19:52:20 2015 +0200 Committer: Luc Maisonobe <l...@apache.org> Committed: Fri Sep 11 19:52:20 2015 +0200 ---------------------------------------------------------------------- .../commons/math3/ml/neuralnet/twod/util/HitHistogram.java | 5 ++--- .../math3/ml/neuralnet/twod/util/SmoothedDataHistogram.java | 2 +- .../math3/ml/neuralnet/twod/util/TopographicErrorHistogram.java | 2 +- .../math3/ml/neuralnet/twod/util/UnifiedDistanceMatrix.java | 4 ++-- 4 files changed, 6 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/ace087b4/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/HitHistogram.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/HitHistogram.java b/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/HitHistogram.java index 96b8c5d..8c2d5b4 100644 --- a/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/HitHistogram.java +++ b/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/HitHistogram.java @@ -22,7 +22,6 @@ import org.apache.commons.math3.ml.neuralnet.Neuron; import org.apache.commons.math3.ml.neuralnet.Network; import org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D; import org.apache.commons.math3.ml.distance.DistanceMeasure; -import org.apache.commons.math3.util.Pair; /** * Computes the hit histogram. @@ -36,7 +35,7 @@ public class HitHistogram implements MapDataVisualization { private final boolean normalizeCount; /** - * @param relativeCount Whether to compute relative bin counts. + * @param normalizeCount Whether to compute relative bin counts. * If {@code true}, the data count in each bin will be divided by the total * number of samples. * @param distance Distance. @@ -63,7 +62,7 @@ public class HitHistogram implements MapDataVisualization { for (double[] sample : data) { final Neuron best = MapUtils.findBest(sample, map, distance); - + final LocationFinder.Location loc = finder.getLocation(best); final int row = loc.getRow(); final int col = loc.getColumn(); http://git-wip-us.apache.org/repos/asf/commons-math/blob/ace087b4/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/SmoothedDataHistogram.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/SmoothedDataHistogram.java b/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/SmoothedDataHistogram.java index c8a6d84..a8d2622 100644 --- a/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/SmoothedDataHistogram.java +++ b/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/SmoothedDataHistogram.java @@ -53,7 +53,7 @@ public class SmoothedDataHistogram implements MapDataVisualization { for (int i = 0; i < smoothingBins; i++) { sum += smoothingBins - i; } - + this.membershipNormalization = 1d / sum; } http://git-wip-us.apache.org/repos/asf/commons-math/blob/ace087b4/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/TopographicErrorHistogram.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/TopographicErrorHistogram.java b/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/TopographicErrorHistogram.java index b337c0a..48dd53a 100644 --- a/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/TopographicErrorHistogram.java +++ b/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/TopographicErrorHistogram.java @@ -64,7 +64,7 @@ public class TopographicErrorHistogram implements MapDataVisualization { for (double[] sample : data) { final Pair<Neuron, Neuron> p = MapUtils.findBestAndSecondBest(sample, map, distance); final Neuron best = p.getFirst(); - + final LocationFinder.Location loc = finder.getLocation(best); final int row = loc.getRow(); final int col = loc.getColumn(); http://git-wip-us.apache.org/repos/asf/commons-math/blob/ace087b4/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/UnifiedDistanceMatrix.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/UnifiedDistanceMatrix.java b/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/UnifiedDistanceMatrix.java index 3f56260..bd1b4e8 100644 --- a/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/UnifiedDistanceMatrix.java +++ b/src/main/java/org/apache/commons/math3/ml/neuralnet/twod/util/UnifiedDistanceMatrix.java @@ -33,8 +33,8 @@ public class UnifiedDistanceMatrix implements MapVisualization { /** Distance. */ private final DistanceMeasure distance; - /** - * @param boolean individualDistances. If {@code true}, the 8 individual + /** Simple constructor. + * @param individualDistances If {@code true}, the 8 individual * inter-units distances will be {@link #computeImage(NeuronSquareMesh2D) * computed}. They will be stored in additional pixels around each of * the original units of the 2D-map. The value zero will be stored in the