diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/Clusterer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/Clusterer.java index d56152e08..e1c426686 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/Clusterer.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/Clusterer.java @@ -53,8 +53,7 @@ public abstract class Clusterer { * @throws ConvergenceException if the algorithm has not yet converged after * the maximum number of iterations has been exceeded */ - public abstract List> cluster(Collection points) - throws MathIllegalArgumentException, ConvergenceException; + public abstract List> cluster(Collection points); /** * Returns the {@link DistanceMeasure} instance used by this clusterer. @@ -76,5 +75,4 @@ public abstract class Clusterer { protected double distance(final Clusterable p1, final Clusterable p2) { return measure.compute(p1.getPoint(), p2.getPoint()); } - }