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