Package org.hipparchus.stat.descriptive
package org.hipparchus.stat.descriptive
Generic univariate and multivariate summary statistic objects.
UnivariateStatistic API Usage Examples:
UnivariateStatistic:
/∗ evaluation approach ∗/
double[] values = new double[] { 1, 2, 3, 4, 5 };
UnivariateStatistic stat = new Mean();
out.println("mean = " + stat.evaluate(values));
StorelessUnivariateStatistic:
/∗ incremental approach ∗/
double[] values = new double[] { 1, 2, 3, 4, 5 };
StorelessUnivariateStatistic stat = new Mean();
out.println("mean before adding a value is NaN = " + stat.getResult());
for (int i = 0; i < values.length; i++) {
stat.increment(values[i]);
out.println("current mean = " + stat2.getResult());
}
stat.clear();
out.println("mean after clear is NaN = " + stat.getResult());
-
ClassDescriptionAbstract base class for implementations of the
StorelessUnivariateStatistic
interface.Abstract base class for implementations of theUnivariateStatistic
interface.An interface for statistics that can aggregate results.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 theaddValue
method.Reporting interface for basic multivariate statistics.Reporting interface for basic univariate statistics.Value object representing the results of a univariate statistical summary.Base interface implemented by storeless multivariate statistics.Extends the definition ofUnivariateStatistic
withStorelessUnivariateStatistic.increment(double)
andStorelessUnivariateStatistic.incrementAll(double[])
methods for adding values and updating internal state.Computes summary statistics for a stream of data values added using theaddValue
method.Builder for StreamingStatistics instances.Base interface implemented by all statistics.Weighted evaluation for statistics.