From b32f86259d3e9f3074aa1777ebab692df4753719 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Thu, 21 Mar 2013 22:18:32 +0000 Subject: [PATCH] Formatting und removal of unused import. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1459552 13f79535-47bb-0310-9956-ffa450edef68 --- .../MultivariateNormalMixtureExpectationMaximization.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/apache/commons/math3/distribution/fitting/MultivariateNormalMixtureExpectationMaximization.java b/src/main/java/org/apache/commons/math3/distribution/fitting/MultivariateNormalMixtureExpectationMaximization.java index fb798c3fd..a4919e3c6 100644 --- a/src/main/java/org/apache/commons/math3/distribution/fitting/MultivariateNormalMixtureExpectationMaximization.java +++ b/src/main/java/org/apache/commons/math3/distribution/fitting/MultivariateNormalMixtureExpectationMaximization.java @@ -19,7 +19,6 @@ package org.apache.commons.math3.distribution.fitting; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.apache.commons.math3.distribution.MixtureMultivariateRealDistribution; import org.apache.commons.math3.distribution.MultivariateNormalDistribution; import org.apache.commons.math3.distribution.MixtureMultivariateNormalDistribution; import org.apache.commons.math3.exception.ConvergenceException; @@ -42,8 +41,7 @@ import org.apache.commons.math3.util.Pair; * multivariate normal mixture model distributions. * * This implementation is based on - * - * CRAN Mixtools + * CRAN Mixtools * * @version $Id$ * @since 3.2 @@ -199,9 +197,7 @@ public class MultivariateNormalMixtureExpectationMaximization { sumLogLikelihood += Math.log(rowDensity); for (int j = 0; j < k; j++) { - gamma[i][j] = weights[j] * mvns[j].density(data[i]) - / rowDensity; - + gamma[i][j] = weights[j] * mvns[j].density(data[i]) / rowDensity; gammaSums[j] += gamma[i][j]; for (int col = 0; col < numCols; col++) {