Package org.apache.commons.math.stat.descriptive
package org.apache.commons.math.stat.descriptive
Generic univariate summary statistic objects.
UnivariateStatistic API Usage Examples:
UnivariateStatistic:
/* evaluation approach */
double[] values = new double[] { 1, 2,
3, 4, 5 };
UnivariateStatistic stat
= new Mean();
System.out.println("mean = " + stat.evaluate(values));
StorelessUnivariateStatistic:
/* incremental approach */
double[] values = new double[] { 1, 2,
3, 4, 5 };
StorelessUnivariateStatistic stat = new Mean();
System.out.println("mean before adding a value is NaN = " + stat.getResult());
for (int i = 0;
i < values.length; i++) {
stat.increment(values[i]);
System.out.println("current mean = " +
stat2.getResult());
}
stat.clear();
System.out.println("mean after clear is NaN = "
+ stat.getResult());-
ClassDescriptionAbstract implementation of the
StorelessUnivariateStatisticinterface.Abstract base class for all implementations of theUnivariateStatisticinterface.An aggregator forSummaryStatisticsfrom several data sets or data set partitions.Maintains a dataset of values of a single variable and computes descriptive statistics based on stored data.Computes summary statistics for a stream of n-tuples added using theaddValuemethod.Reporting interface for basic multivariate statistics.Reporting interface for basic univariate statistics.Value object representing the results of a univariate statistical summary.Extends the definition ofUnivariateStatisticwithStorelessUnivariateStatistic.increment(double)andStorelessUnivariateStatistic.incrementAll(double[])methods for adding values and updating internal state.Computes summary statistics for a stream of data values added using theaddValuemethod.Implementation ofDescriptiveStatisticsthat is safe to use in a multithreaded environment.Implementation ofMultivariateSummaryStatisticsthat is safe to use in a multithreaded environment.Implementation ofSummaryStatisticsthat is safe to use in a multithreaded environment.Base interface implemented by all statistics.Weighted evaluation for statistics.