public interface Processor
StreamingSampleStats.Statistic,
StreamingSampleStats| Modifier and Type | Method and Description |
|---|---|
void |
addNoDataRange(Range<Double> noData)
Sets a range of values to be considered as NoData.
|
void |
addNoDataValue(Double noData)
Convenience method to specify a single value to be considered as NoData.
|
void |
addRange(Range<Double> range)
Sets a range of values to exclude from or include in from
calculations.
|
void |
addRange(Range<Double> range,
Range.Type rangeType)
Sets a range of values to exclude from or include in calculations.
|
Map<Statistic,Double> |
get()
Gets the value of all statistics calculated by this processor.
|
Double |
get(Statistic stat)
Gets the value of the statistic calculated by this processor.
|
List<Range<Double>> |
getNoDataRanges()
Gets the ranges of sample values to be considered as NoData.
|
long |
getNumAccepted()
Gets the number of samples that have been accepted by this processor
(ie.
|
long |
getNumNaN()
Gets the number of NaN samples passed to the processor
|
long |
getNumNoData()
Gets the number of NoData samples passed to the processor.
|
long |
getNumOffered()
Gets the number of samples that have been offered to this processor.
|
List<Range<Double>> |
getRanges()
Gets the
Ranges of sample values excluded from/included in calculations. |
Range.Type |
getRangesType()
Gets the type of ranges being used by this processor.
|
Collection<Statistic> |
getSupported()
Gets the
Statistics supported by this processor. |
boolean |
isAccepted(Double sample)
Tests whether a sample value will be accepted for calculations by
the processor.
|
void |
offer(Double sample)
Offers a sample value to the processor.
|
void |
setRangesType(Range.Type rangeType)
Sets the type of the ranges to be added to the processor.
|
Collection<Statistic> getSupported()
Statistics supported by this processor.Statisticsvoid addNoDataRange(Range<Double> noData)
NoData ranges take precedence over included / excluded data ranges.
noData - a range of values to be excludedvoid addNoDataValue(Double noData)
noData - the value to be treated as NoDataaddNoDataRange(org.jaitools.numeric.Range<java.lang.Double>)void addRange(Range<Double> range, Range.Type rangeType)
range - the rangerangeType - the type of rangeIllegalArgumentException - if rangeType is different to that
of a previously added range.void addRange(Range<Double> range)
range - the rangevoid setRangesType(Range.Type rangeType)
rangeType - the type of range.Range.Type getRangesType()
List<Range<Double>> getNoDataRanges()
Ranges or an empty list if no NoData are definedList<Range<Double>> getRanges()
Ranges of sample values excluded from/included in calculations.Ranges or an empty list if no ranges are definedboolean isAccepted(Double sample)
sample - the sample valuevoid offer(Double sample)
sample - the sample valuelong getNumOffered()
long getNumAccepted()
long getNumNaN()
long getNumNoData()
addNoDataRange(org.jaitools.numeric.Range),
addNoDataValue(java.lang.Double)Double get(Statistic stat) throws IllegalArgumentException
stat - the specified statisticIllegalArgumentException - if stat is not supported
by this processorCopyright © 2009–2018. All rights reserved.