Removed usage of MathRuntimeException in MultivariateSummaryStatistics.

JIRA: MATH-459

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1240291 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2012-02-03 18:57:35 +00:00
parent 109e91c742
commit ffc89e5baf
1 changed files with 5 additions and 5 deletions

View File

@ -19,9 +19,9 @@ package org.apache.commons.math.stat.descriptive;
import java.io.Serializable; import java.io.Serializable;
import java.util.Arrays; import java.util.Arrays;
import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.exception.util.LocalizedFormats; import org.apache.commons.math.exception.util.LocalizedFormats;
import org.apache.commons.math.exception.DimensionMismatchException; import org.apache.commons.math.exception.DimensionMismatchException;
import org.apache.commons.math.exception.MathIllegalStateException;
import org.apache.commons.math.linear.RealMatrix; import org.apache.commons.math.linear.RealMatrix;
import org.apache.commons.math.stat.descriptive.moment.GeometricMean; import org.apache.commons.math.stat.descriptive.moment.GeometricMean;
import org.apache.commons.math.stat.descriptive.moment.Mean; import org.apache.commons.math.stat.descriptive.moment.Mean;
@ -605,13 +605,13 @@ public class MultivariateSummaryStatistics
} }
/** /**
* Throws IllegalStateException if n > 0. * Throws MathIllegalStateException if the statistic is not empty.
* @throws MathIllegalStateException if n > 0.
*/ */
private void checkEmpty() { private void checkEmpty() {
if (n > 0) { if (n > 0) {
throw MathRuntimeException.createIllegalStateException( throw new MathIllegalStateException(
LocalizedFormats.VALUES_ADDED_BEFORE_CONFIGURING_STATISTIC, LocalizedFormats.VALUES_ADDED_BEFORE_CONFIGURING_STATISTIC, n);
n);
} }
} }