diff --git a/src/main/java/org/apache/commons/math3/stat/descriptive/SummaryStatistics.java b/src/main/java/org/apache/commons/math3/stat/descriptive/SummaryStatistics.java index 3e7fff7d6..e1bc875a3 100644 --- a/src/main/java/org/apache/commons/math3/stat/descriptive/SummaryStatistics.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/SummaryStatistics.java @@ -418,9 +418,10 @@ public class SummaryStatistics implements StatisticalSummary, Serializable { * Sets the implementation for the Sum. *
*- * This method must be activated before any data has been added - i.e., - * before {@link #addValue(double) addValue} has been used to add data; - * otherwise an IllegalStateException will be thrown. + * This method cannot be activated after data has been added - i.e., + * after {@link #addValue(double) addValue} has been used to add data. + * If it is activated after data has been added, an IllegalStateException + * will be thrown. *
* @param sumImpl the StorelessUnivariateStatistic instance to use for * computing the Sum @@ -447,9 +448,10 @@ public class SummaryStatistics implements StatisticalSummary, Serializable { * Sets the implementation for the sum of squares. * *- * This method must be activated before any data has been added - i.e., - * before {@link #addValue(double) addValue} has been used to add data; - * otherwise an IllegalStateException will be thrown. + * This method cannot be activated after data has been added - i.e., + * after {@link #addValue(double) addValue} has been used to add data. + * If it is activated after data has been added, an IllegalStateException + * will be thrown. *
* @param sumsqImpl the StorelessUnivariateStatistic instance to use for * computing the sum of squares @@ -476,9 +478,10 @@ public class SummaryStatistics implements StatisticalSummary, Serializable { * Sets the implementation for the minimum. * *- * This method must be activated before any data has been added - i.e., - * before {@link #addValue(double) addValue} has been used to add data; - * otherwise an IllegalStateException will be thrown. + * This method cannot be activated after data has been added - i.e., + * after {@link #addValue(double) addValue} has been used to add data. + * If it is activated after data has been added, an IllegalStateException + * will be thrown. *
* @param minImpl the StorelessUnivariateStatistic instance to use for * computing the minimum @@ -505,9 +508,10 @@ public class SummaryStatistics implements StatisticalSummary, Serializable { * Sets the implementation for the maximum. * *- * This method must be activated before any data has been added - i.e., - * before {@link #addValue(double) addValue} has been used to add data; - * otherwise an IllegalStateException will be thrown. + * This method cannot be activated after data has been added - i.e., + * after {@link #addValue(double) addValue} has been used to add data. + * If it is activated after data has been added, an IllegalStateException + * will be thrown. *
* @param maxImpl the StorelessUnivariateStatistic instance to use for * computing the maximum @@ -534,9 +538,10 @@ public class SummaryStatistics implements StatisticalSummary, Serializable { * Sets the implementation for the sum of logs. * *- * This method must be activated before any data has been added - i.e., - * before {@link #addValue(double) addValue} has been used to add data; - * otherwise an IllegalStateException will be thrown. + * This method cannot be activated after data has been added - i.e., + * after {@link #addValue(double) addValue} has been used to add data. + * If it is activated after data has been added, an IllegalStateException + * will be thrown. *
* @param sumLogImpl the StorelessUnivariateStatistic instance to use for * computing the log sum @@ -564,9 +569,10 @@ public class SummaryStatistics implements StatisticalSummary, Serializable { * Sets the implementation for the geometric mean. * *- * This method must be activated before any data has been added - i.e., - * before {@link #addValue(double) addValue} has been used to add data; - * otherwise an IllegalStateException will be thrown. + * This method cannot be activated after data has been added - i.e., + * after {@link #addValue(double) addValue} has been used to add data. + * If it is activated after data has been added, an IllegalStateException + * will be thrown. *
* @param geoMeanImpl the StorelessUnivariateStatistic instance to use for * computing the geometric mean @@ -593,9 +599,10 @@ public class SummaryStatistics implements StatisticalSummary, Serializable { * Sets the implementation for the mean. * *- * This method must be activated before any data has been added - i.e., - * before {@link #addValue(double) addValue} has been used to add data; - * otherwise an IllegalStateException will be thrown. + * This method cannot be activated after data has been added - i.e., + * after {@link #addValue(double) addValue} has been used to add data. + * If it is activated after data has been added, an IllegalStateException + * will be thrown. *
* @param meanImpl the StorelessUnivariateStatistic instance to use for * computing the mean @@ -622,9 +629,10 @@ public class SummaryStatistics implements StatisticalSummary, Serializable { * Sets the implementation for the variance. * *- * This method must be activated before any data has been added - i.e., - * before {@link #addValue(double) addValue} has been used to add data; - * otherwise an IllegalStateException will be thrown. + * This method cannot be activated after data has been added - i.e., + * after {@link #addValue(double) addValue} has been used to add data. + * If it is activated after data has been added, an IllegalStateException + * will be thrown. *
* @param varianceImpl the StorelessUnivariateStatistic instance to use for * computing the variance