SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.descriptive
Interface Statistic

All Known Implementing Classes:
Covariance, Kurtosis, Max, Mean, Min, Moments, Quantile, Skewness, SynchronizedStatistic, Variance

public interface Statistic

A statistic (singular) is a single measure of some attribute of a sample (e.g. its arithmetic mean value). It is calculated by applying a function (statistical algorithm) to a sample, i.e., a set of data.

See Also:
Wikipedia: Statistic

Method Summary
 void addData(double... data)
          Recompute the statistic, incrementally if possible.
 long N()
          Get the size of the sample.
 double value()
          Get the value of the statistic.
 

Method Detail

addData

void addData(double... data)
Recompute the statistic, incrementally if possible.

Parameters:
data - an array of new items

value

double value()
Get the value of the statistic.

Returns:
the statistic

N

long N()
Get the size of the sample.

Returns:
the sample size

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.