Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

## Package org.apache.commons.math.stat.descriptive

Generic univariate summary statistic objects.

See:
Description

Interface Summary
StatisticalSummary | Reporting interface for basic univariate statistics.
StorelessUnivariateStatistic | Extends the definition of `UnivariateStatistic` with `StorelessUnivariateStatistic.increment(double)` and `StorelessUnivariateStatistic.incrementAll(double[])` methods for adding values and updating internal state.
UnivariateStatistic | Base evaluation interface implemented by all statistics.

Class Summary
AbstractStorelessUnivariateStatistic | Abstract Implementation for the `StorelessUnivariateStatistic` interface.
AbstractUnivariateStatistic | Abstract base class for all implementations of the `UnivariateStatistic` interface.
DescriptiveStatistics | Abstract factory class for univariate statistical summaries.
DescriptiveStatisticsImpl | Default implementation of `DescriptiveStatistics`.
StatisticalSummaryValues | Value object representing the results of a univariate statistical summary.
SummaryStatistics | Abstract factory class for univariate statistical summaries.
SummaryStatisticsImpl | Provides a default `SummaryStatistics` implementation.

## Package org.apache.commons.math.stat.descriptive Description

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());`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

Copyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.