public class Result extends Object
ZonalStats for examples of how to access
results.ZonalStats| Constructor and Description |
|---|
Result(int imageBand,
int zone,
Statistic stat,
List<Range> ranges,
Double value,
long numOffered,
long numAccepted,
long numNaN,
long numNoData)
Create a new
Result object. |
| Modifier and Type | Method and Description |
|---|---|
int |
getImageBand()
Get the index of the image band for which this result
was calculated.
|
long |
getNumAccepted()
Get the number of values that were accepted, ie.
|
long |
getNumNaN()
Get the number of NaN values that were sampled from the image when
calculating this result.
|
long |
getNumNoData()
Get the number of NoData values that were sampled from the image when
calculating this result.
|
long |
getNumOffered()
Get the number of values that were offered, ie.
|
Collection<Range> |
getRanges()
Get the ranges (if defined) that were used to filter data image
values for inclusion in the calculation of this result.
|
Statistic |
getStatistic()
Get the statistic that this result pertains to.
|
Double |
getValue()
Get the calculated value of the statistic.
|
int |
getZone()
Get the integer ID of the image zone for which this result was
calculated.
|
String |
toString() |
public Result(int imageBand,
int zone,
Statistic stat,
List<Range> ranges,
Double value,
long numOffered,
long numAccepted,
long numNaN,
long numNoData)
Result object. This is intended for use by the
ZonalStats class rather than client code.imageBand - data image bandzone - integer identifier of the zone in the zone image; 0 should be passed
when no zone image was usedstat - the statistic to which this result pertainsranges - list of ranges (if any) used to filter data image valuesvalue - the calculated value of the statisticnumOffered - number of data image values considered for inclusionnumAccepted - number of data image values actually used for calculating
this resultnumNaN - number of NaN values read from the data imagenumNoData - number of NoData values read from the data imagepublic Collection<Range> getRanges()
public int getImageBand()
public int getZone()
public Statistic getStatistic()
public Double getValue()
public long getNumAccepted()
public long getNumOffered()
public long getNumNaN()
public long getNumNoData()
Copyright © 2009–2018. All rights reserved.