/** * Return a {@link StatisticalSummaryValues} instance reporting current * statistics. * @return Current values of statistics */ public StatisticalSummary getSummary() { return new StatisticalSummaryValues(getMean(), getVariance(), getN(), getMax(), getMin(), getSum()); }
/** * Return a {@link StatisticalSummaryValues} instance reporting current * aggregate statistics. * * @return Current values of aggregate statistics */ public StatisticalSummary getSummary() { synchronized (statistics) { return new StatisticalSummaryValues(getMean(), getVariance(), getN(), getMax(), getMin(), getSum()); } }
/** * Completes an append request to the member. * * @param time The time in milliseconds for the append. */ public void completeAppend(long time) { appending--; timeStats.addValue(time); }
LoggingAction(int valueCount) { stats = new SummaryStatistics[valueCount]; for (int i = 0; i < stats.length; i++) { stats[i] = new SummaryStatistics(); } }
/** * {@inheritDoc} * @since 3.1 */ public double getNumericalMean() { return sampleStats.getMean(); }
/** * {@inheritDoc} */ @Override public synchronized long getN() { return super.getN(); }
/** * {@inheritDoc} */ @Override public synchronized void clear() { super.clear(); }
/** * Construct a DescriptiveStatistics instance with the specified window * * @param window the window size. * @throws MathIllegalArgumentException if window size is less than 1 but * not equal to {@link #INFINITE_WINDOW} */ public DescriptiveStatistics(int window) throws MathIllegalArgumentException { setWindowSize(window); }
/** * {@inheritDoc} */ @Override public synchronized String toString() { return super.toString(); }
/** * A copy constructor. Creates a deep-copy of the {@code original}. * * @param original the {@code SummaryStatistics} instance to copy * @throws NullArgumentException if original is null */ public SummaryStatistics(SummaryStatistics original) throws NullArgumentException { copy(original, this); }
/** * {@inheritDoc} */ @Override public synchronized String toString() { return super.toString(); }
/** * {@inheritDoc} */ @Override public synchronized void setGeoMeanImpl(StorelessUnivariateStatistic geoMeanImpl) throws MathIllegalStateException { super.setGeoMeanImpl(geoMeanImpl); }
/** * Returns the skewness of the available values. Skewness is a * measure of the asymmetry of a given distribution. * * @return The skewness, Double.NaN if less than 3 values have been added. */ public double getSkewness() { return apply(skewnessImpl); }
/** * {@inheritDoc} */ @Override public synchronized int getWindowSize() { return super.getWindowSize(); }
/** * {@inheritDoc} */ @Override public synchronized double[] getSumLog() { return super.getSumLog(); }
/** * {@inheritDoc} */ @Override public synchronized double[] getStandardDeviation() { return super.getStandardDeviation(); }
/** * {@inheritDoc} */ @Override public synchronized void setSumLogImpl(StorelessUnivariateStatistic[] sumLogImpl) throws DimensionMismatchException, MathIllegalStateException { super.setSumLogImpl(sumLogImpl); }
/** * Returns the Kurtosis of the available values. Kurtosis is a * measure of the "peakedness" of a distribution. * * @return The kurtosis, Double.NaN if less than 4 values have been added. */ public double getKurtosis() { return apply(kurtosisImpl); }
/** * Returns the maximum of the available values * @return The max or Double.NaN if no values have been added. */ public double getMax() { return apply(maxImpl); }