public class ApproxMedianProcessor extends AbstractProcessor
Statistic.APPROX_MEDIAN.
Calculation of an exact median is only possible by storing all sample
values. For very large data streams, this processor will calculate an
approximate median using the remedian estimator:
PJ Rousseeuw and GW Bassett (1990) The remedian: a robust averaging method for large data sets. Journal of the American Statistical Society 85:97-104
The remedian estimator performs badly with non-stationary data, e.g. a data stream that is monotonically increasing will result in an over-estimate. If possible (which it probably isn't), it will help to de-trend or randomly order the data prior to streaming it.
Statistic,
StreamingSampleStats| Constructor and Description |
|---|
ApproxMedianProcessor()
Default constructor.
|
| 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. |
addNoDataRange, addNoDataValue, addRange, addRange, get, getNoDataRanges, getNumAccepted, getNumNaN, getNumNoData, getNumOffered, getRanges, getRangesType, isAccepted, offer, setRangesTypepublic Collection<Statistic> getSupported()
Statistics supported by this processor.StatisticsCopyright © 2009–2018. All rights reserved.