public abstract class AbstractStatistics extends Object implements Statistics
| Modifier and Type | Field and Description |
|---|---|
protected int |
bandCount |
protected boolean |
calculated |
protected boolean |
complete |
protected double[] |
max |
protected double[] |
maxByteUnsigned |
protected double[] |
mean |
protected double[] |
min |
protected double[] |
minByteUnsigned |
protected long[] |
nValues |
protected double[] |
secondMax |
protected double[] |
secondMaxByteUnsigned |
protected double[] |
secondMin |
protected double[] |
secondMinByteUnsigned |
protected Hashtable<String,Object> |
tailTrim |
protected ArrayList<String> |
tailTrimValues |
protected double[] |
variance |
| Constructor and Description |
|---|
AbstractStatistics() |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateAdvanced()
Calculo de estadisticas avanzadas (Matriz varianza- covarianza).
|
Statistics |
cloneStatistics(AbstractStatistics s) |
protected void |
finalize() |
abstract int |
getBandCount()
Gets the number of bands
|
double[] |
getMax()
Devuelve una lista con los máximos de todas las bandas
|
double[] |
getMaxByteUnsigned()
Obtiene el máximo cuando el raster es de typo byte RGB
|
double |
getMaximun()
Devuelve el máximo valor de todos los máximos de las bandas
|
double |
getMaximunByteUnsigned()
Devuelve el máximo valor RGB de todos los máximos de las bandas
|
double[] |
getMean()
Obtiene el valor médio
|
double[] |
getMin()
Devuelve una lista con los mínimos de todas las bandas
|
double[] |
getMinByteUnsigned()
Obtiene el mínimo cuando el raster es de typo byte RGB
|
double |
getMinimun()
Devuelve el mínimo valor de todos los mínimos de las bandas
|
double |
getMinimunByteUnsigned()
Devuelve el mínimo valor RGB de todos los mínimos de las bandas
|
long[] |
getNumberOfCells()
Gets the number of pixels by band
|
long[] |
getNumberOfValues()
Gets the number of values by band
|
abstract int |
getPercent()
Obtiene el porcentaje de progreso del proceso de calculo de histograma
|
double[] |
getSecondMax()
Obtiene el valor del segundo máximo
|
double[] |
getSecondMaxByteUnsigned()
Obtiene el segundo máximo cuando el raster es de typo byte RGB
|
double[] |
getSecondMin()
Obtiene el valor del segundo mínimo
|
double[] |
getSecondMinByteUnsigned()
Obtiene el segundo mínimo cuando el raster es de typo byte RGB
|
int |
getTailTrimCount()
Devuelve el número de valores de recorte de colas calculados.
|
Object |
getTailTrimValue(double percent)
Obtiene un valor de recorte de colas para un porcentaje dado.
|
Object[] |
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 |
isAdvancedStatisticsCalculated()
Returns true if the advanced statistics are calculated and false if not
|
boolean |
isCalculated()
Obtiene el flag que informa de si las estadísticas están calculadas o no.
|
static void |
registerPersistent(DynStruct definition) |
abstract void |
resetPercent()
Pone a cero el porcentaje de progreso del proceso de calculo de histograma
|
abstract void |
setBandCount(int bandCount)
Sets the number of bands
|
void |
setCalculated(boolean calc)
Asigna el flag de estadísticas calculadas.
|
void |
setMax(double[] max)
Asigna el valor máximo del grid
|
void |
setMaxRGB(double[] max)
Asigna el valor máximo del grid
|
void |
setMean(double[] mean)
Asigna el valor médio del grid
|
void |
setMin(double[] min)
Asigna el valor míximo del grid
|
void |
setMinRGB(double[] min)
Asigna el valor míximo del grid
|
void |
setNumberOfValues(long[] values)
Sets the number of values by band
|
void |
setSecondMax(double[] smax)
Asigna el valor del segundo máximo
|
void |
setSecondMaxRGB(double[] smax)
Asigna el valor del segundo máximo
|
void |
setSecondMin(double[] smin)
Asigna el valor del segundo mínimo
|
void |
setSecondMinRGB(double[] smin)
Asigna el valor del segundo mínimo
|
void |
setTailTrimValue(double percent,
Object valueByBand)
Asigna un valor de recorte de colas para un porcentaje dado.
|
void |
setVariance(double[] variance)
Asigna la varianza
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcalculate, cloneStatistics, forceToRecalcprotected boolean complete
protected double[] max
protected double[] min
protected double[] secondMax
protected double[] secondMin
protected double[] maxByteUnsigned
protected double[] minByteUnsigned
protected double[] secondMaxByteUnsigned
protected double[] secondMinByteUnsigned
protected double[] mean
protected double[] variance
protected long[] nValues
protected boolean calculated
protected int bandCount
public static void registerPersistent(DynStruct definition)
public void setNumberOfValues(long[] values)
StatisticssetNumberOfValues in interface Statisticspublic long[] getNumberOfValues()
StatisticsgetNumberOfValues in interface Statisticspublic void setMax(double[] max)
public void setSecondMax(double[] smax)
public void setMaxRGB(double[] max)
public void setSecondMaxRGB(double[] smax)
public void setMean(double[] mean)
public void setMin(double[] min)
public void setSecondMin(double[] smin)
public void setMinRGB(double[] min)
public void setSecondMinRGB(double[] smin)
public void setVariance(double[] variance)
public double[] getMin()
StatisticsgetMin in interface Statisticspublic double[] getMax()
StatisticsgetMax in interface Statisticspublic double[] getSecondMax()
StatisticsgetSecondMax in interface Statisticspublic double[] getSecondMin()
StatisticsgetSecondMin in interface Statisticspublic double[] getMinByteUnsigned()
StatisticsgetMinByteUnsigned in interface Statisticspublic double[] getMaxByteUnsigned()
StatisticsgetMaxByteUnsigned in interface Statisticspublic double[] getSecondMaxByteUnsigned()
StatisticsgetSecondMaxByteUnsigned in interface Statisticspublic double[] getSecondMinByteUnsigned()
StatisticsgetSecondMinByteUnsigned in interface Statisticspublic double getMaximun()
StatisticsgetMaximun in interface Statisticspublic double getMinimun()
StatisticsgetMinimun in interface Statisticspublic double getMaximunByteUnsigned()
StatisticsgetMaximunByteUnsigned in interface Statisticspublic double getMinimunByteUnsigned()
StatisticsgetMinimunByteUnsigned in interface Statisticspublic double[] getMean()
StatisticsgetMean in interface Statisticspublic double[] getVariance()
StatisticsgetVariance in interface Statisticspublic boolean isCalculated()
StatisticsisCalculated in interface Statisticspublic void setCalculated(boolean calc)
setCalculated in interface Statisticscalc - public void setTailTrimValue(double percent,
Object valueByBand)
StatisticssetTailTrimValue in interface Statisticspercent - Porcentaje de recortevalueByBand - array bidimensional de enteros o doubles. Depende del tipo de dato del raster.public Object getTailTrimValue(double percent)
StatisticsgetTailTrimValue in interface Statisticspercent - Porcentaje de recortepublic Object[] getTailTrimValue(int pos)
StatisticsgetTailTrimValue in interface Statisticspublic int getTailTrimCount()
StatisticsgetTailTrimCount in interface Statisticspublic abstract void resetPercent()
resetPercent in interface Statisticspublic abstract int getPercent()
getPercent in interface Statisticspublic abstract int getBandCount()
StatisticsgetBandCount in interface Statisticspublic abstract void setBandCount(int bandCount)
StatisticssetBandCount in interface Statisticspublic boolean isAdvancedStatisticsCalculated()
isAdvancedStatisticsCalculated in interface Statisticspublic void calculateAdvanced()
throws GridException
StatisticscalculateAdvanced in interface StatisticsGridExceptionpublic long[] getNumberOfCells()
StatisticsgetNumberOfCells in interface Statisticspublic double[][] getVarianceCovarianceMatrix()
StatisticsgetVarianceCovarianceMatrix in interface Statisticspublic Statistics cloneStatistics(AbstractStatistics s)