public class DefaultStatistics extends java.lang.Object implements Statistics
Constructor and Description |
---|
DefaultStatistics() |
Modifier and Type | Method and Description |
---|---|
void |
calculate(SimpleTaskStatus status,
java.util.List<Band> bands)
Throws the thread which figure out statistics
|
int |
getBandCount()
Gets the number of bands
|
HistogramBand[] |
getHistogram()
Return the histogram of all bands.
|
double[] |
getMax()
Devuelve una lista con los máximos de todas las bandas
|
double |
getMaximum()
Devuelve el máximo valor de todos los máximos de las bandas
|
double[] |
getMean()
Obtiene el valor médio
|
double[] |
getMedian() |
double[] |
getMin()
Devuelve una lista con los mínimos de todas las bandas
|
double |
getMinimum()
Devuelve el mínimo valor de todos los mínimos de las bandas
|
long[] |
getNumberOfValues()
Gets the number of values by band
|
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
|
double[][] |
getVarianceCovarianceMatrix()
Devuelve la matriz de varianza-covarianza, si no se encuentra calculada se calcula
|
boolean |
isCalculated()
Obtiene el flag que informa de si las estadísticas están calculadas o no.
|
java.util.Iterator<StatisticsBand> |
iterator() |
java.lang.String |
toHTMLString() |
public long[] getNumberOfValues()
Statistics
getNumberOfValues
in interface Statistics
public double[] getMax()
Statistics
getMax
in interface Statistics
public double[] getSecondMax()
Statistics
getSecondMax
in interface Statistics
public double[] getSecondMin()
Statistics
getSecondMin
in interface Statistics
public double getMaximum()
Statistics
getMaximum
in interface Statistics
public double getMinimum()
Statistics
getMinimum
in interface Statistics
public double[] getMean()
Statistics
getMean
in interface Statistics
public double[] getMedian()
getMedian
in interface Statistics
public double[] getMin()
Statistics
getMin
in interface Statistics
public double[] getVariance()
Statistics
getVariance
in interface Statistics
public int getBandCount()
Statistics
getBandCount
in interface Statistics
public boolean isCalculated()
Statistics
isCalculated
in interface Statistics
public void calculate(SimpleTaskStatus status, java.util.List<Band> bands)
Statistics
calculate
in interface Statistics
public double[][] getVarianceCovarianceMatrix()
Statistics
getVarianceCovarianceMatrix
in interface Statistics
public HistogramBand[] getHistogram()
Statistics
getHistogram
in interface Statistics
public double[][] getTailTrimValue(double percent)
Statistics
getTailTrimValue
in interface Statistics
percent
- Porcentaje de recortepublic double[][] getTailTrimValue(int pos)
Statistics
getTailTrimValue
in interface Statistics
pos
- posición de recortepublic java.util.Iterator<StatisticsBand> iterator()
iterator
in interface java.lang.Iterable<StatisticsBand>
public java.lang.String toHTMLString()
toHTMLString
in interface Statistics