public class MeanVarianceProcessor extends AbstractProcessor
Donald E. Knuth (1998). The Art of Computer Programming, volume 2: Seminumerical Algorithms, 3rd edn., p. 232.The algorithm is described online at:
http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#On-line_algorithm
Statistic,
StreamingSampleStatsnumAccepted, numNaN, numNoData, numOffered| Constructor and Description |
|---|
MeanVarianceProcessor() |
| Modifier and Type | Method and Description |
|---|---|
Double |
get(Statistic stat)
Gets the value of the statistic calculated by this processor.
|
Collection<Statistic> |
getSupported()
Gets the
Statistics supported by this processor. |
protected boolean |
update(Double sample)
Processes a sample value.
|
addNoDataRange, addNoDataValue, addRange, addRange, get, getNoDataRanges, getNumAccepted, getNumNaN, getNumNoData, getNumOffered, getRanges, getRangesType, isAccepted, offer, setRangesTypepublic Collection<Statistic> getSupported()
Statistics supported by this processor.Statisticsprotected boolean update(Double sample)
update in class AbstractProcessorsample - the sample valuetrue if the sample is accepted;
false otherwiseCopyright © 2009–2020. All rights reserved.