From b62b5b0306074417c93c71695cc4c20bce949c5a Mon Sep 17 00:00:00 2001 From: Phil Steitz Date: Fri, 29 Mar 2013 01:42:42 +0000 Subject: [PATCH] Fixed javadoc errors. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1462375 13f79535-47bb-0310-9956-ffa450edef68 --- .../MultivariateNormalMixtureExpectationMaximization.java | 7 ++----- .../math3/ml/clustering/MultiKMeansPlusPlusClusterer.java | 3 ++- 2 files changed, 4 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 2ee444702..fe2c2a0db 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 @@ -128,7 +128,6 @@ public class MultivariateNormalMixtureExpectationMaximization { * or threshold is less than Double.MIN_VALUE * @throws DimensionMismatchException if initialMixture mean vector and data * number of columns are not equal - * @see #estimateMultivariateNormalMixtureModelDistribution */ public void fit(final MixtureMultivariateNormalDistribution initialMixture, final int maxIterations, @@ -275,7 +274,6 @@ public class MultivariateNormalMixtureExpectationMaximization { * singular during fitting * @throws NotStrictlyPositiveException if numComponents is less than one or * threshold is less than Double.MIN_VALUE - * @see #estimateMultivariateNormalMixtureModelDistribution */ public void fit(MixtureMultivariateNormalDistribution initialMixture) throws SingularMatrixException, @@ -285,7 +283,7 @@ public class MultivariateNormalMixtureExpectationMaximization { /** * Helper method to create a multivariate normal mixture model which can be - * used to initialize {@link #fit(MixtureMultivariateRealDistribution)}. + * used to initialize {@link #fit(MixtureMultivariateNormalDistribution)}. * * This method uses the data supplied to the constructor to try to determine * a good mixture model at which to start the fit, but it is not guaranteed @@ -294,13 +292,12 @@ public class MultivariateNormalMixtureExpectationMaximization { * @param data Data to estimate distribution * @param numComponents Number of components for estimated mixture * @return Multivariate normal mixture model estimated from the data - * @throws NumberIsTooLargeException if {@code numComponents\ is greater + * @throws NumberIsTooLargeException if {@code numComponents} is greater * than the number of data rows. * @throws NumberIsTooSmallException if {@code numComponents < 2}. * @throws NotStrictlyPositiveException if data has less than 2 rows * @throws DimensionMismatchException if rows of data have different numbers * of columns - * @see #fit */ public static MixtureMultivariateNormalDistribution estimate(final double[][] data, final int numComponents) diff --git a/src/main/java/org/apache/commons/math3/ml/clustering/MultiKMeansPlusPlusClusterer.java b/src/main/java/org/apache/commons/math3/ml/clustering/MultiKMeansPlusPlusClusterer.java index 3b8b001fb..546c0cfda 100644 --- a/src/main/java/org/apache/commons/math3/ml/clustering/MultiKMeansPlusPlusClusterer.java +++ b/src/main/java/org/apache/commons/math3/ml/clustering/MultiKMeansPlusPlusClusterer.java @@ -74,7 +74,8 @@ public class MultiKMeansPlusPlusClusterer extends Cluster * @throws MathIllegalArgumentException if the data points are null or the number * of clusters is larger than the number of data points * @throws ConvergenceException if an empty cluster is encountered and the - * {@link #emptyStrategy} is set to {@code ERROR} + * underlying {@link KMeansPlusPlusClusterer} has its + * {@link KMeansPlusPlusClusterer.EmptyClusterStrategy} is set to {@code ERROR}. */ public List> cluster(final Collection points) throws MathIllegalArgumentException, ConvergenceException {