/** * @see org.apache.commons.math.stat.descriptive.StorelessUnivariateStatistic#increment(double) */ public void increment(final double d) { if (incMoment) { moment.increment(d); } else { throw new IllegalStateException ("Statistics constructed from external moments cannot be incremented"); } }
/** * {@inheritDoc} */ @Override public void increment(final double d) { if (incMoment) { moment.increment(d); } else { throw MathRuntimeException.createIllegalStateException( LocalizedFormats.CANNOT_INCREMENT_STATISTIC_CONSTRUCTED_FROM_EXTERNAL_MOMENTS); } }
/** * {@inheritDoc} */ @Override public void increment(final double d) { if (incMoment) { moment.increment(d); } else { throw MathRuntimeException.createIllegalStateException( "statistics constructed from external moments cannot be incremented"); } }