public class DefaultStatisticsBand extends java.lang.Object implements StatisticsBand
Constructor and Description |
---|
DefaultStatisticsBand(Band band) |
Modifier and Type | Method and Description |
---|---|
void |
calculate(SimpleTaskStatus status,
Band band)
Throws the thread which figure out statistics
|
long |
getBandLength()
Gets the number of values by band
|
int |
getDataType()
Obtiene el tipo de datos de la banda
|
HistogramBand |
getHistogramBand()
Gets histogram of the band
|
double |
getMaximum()
Devuelve el máximo valor de la banda
|
double |
getMean()
Obtiene el valor medio
|
double |
getMedian()
Obtiene la mediana
|
double |
getMinimum()
Devuelve el mínimo valor de la banda
|
long |
getNoDataValuesCount() |
double |
getSecondMax()
Obtiene el valor del segundo máximo
|
double |
getSecondMin()
Obtiene el valor del segundo mínimo
|
double[] |
getTailTrimValue(double percent)
Obtiene un valor de recorte de colas para un porcentaje dado.
|
double[] |
getTailTrimValue(int pos)
Obtiene un valor de recorte de colas para una posición dada.
|
double |
getVariance()
Obtiene la varianza
|
boolean |
isCalculated()
Obtiene el flag que informa de si las estadísticas están calculadas o no.
|
public DefaultStatisticsBand(Band band)
band
- public boolean isCalculated()
StatisticsBand
isCalculated
in interface StatisticsBand
public void calculate(SimpleTaskStatus status, Band band)
StatisticsBand
calculate
in interface StatisticsBand
public int getDataType()
StatisticsBand
getDataType
in interface StatisticsBand
public long getBandLength()
StatisticsBand
getBandLength
in interface StatisticsBand
public double getSecondMax()
StatisticsBand
getSecondMax
in interface StatisticsBand
public double getSecondMin()
StatisticsBand
getSecondMin
in interface StatisticsBand
public double getMaximum()
StatisticsBand
getMaximum
in interface StatisticsBand
public double getMinimum()
StatisticsBand
getMinimum
in interface StatisticsBand
public double getMean()
StatisticsBand
getMean
in interface StatisticsBand
public double getVariance()
StatisticsBand
getVariance
in interface StatisticsBand
public double[] getTailTrimValue(double percent)
StatisticsBand
getTailTrimValue
in interface StatisticsBand
percent
- Porcentaje de recortepublic double[] getTailTrimValue(int pos)
StatisticsBand
getTailTrimValue
in interface StatisticsBand
pos
- posición de recortepublic HistogramBand getHistogramBand()
StatisticsBand
getHistogramBand
in interface StatisticsBand
public double getMedian()
StatisticsBand
getMedian
in interface StatisticsBand
public long getNoDataValuesCount()
getNoDataValuesCount
in interface StatisticsBand