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, wait
calculate, cloneStatistics, forceToRecalc
protected 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)
Statistics
setNumberOfValues
in interface Statistics
public long[] getNumberOfValues()
Statistics
getNumberOfValues
in interface Statistics
public 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()
Statistics
getMin
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[] getMinByteUnsigned()
Statistics
getMinByteUnsigned
in interface Statistics
public double[] getMaxByteUnsigned()
Statistics
getMaxByteUnsigned
in interface Statistics
public double[] getSecondMaxByteUnsigned()
Statistics
getSecondMaxByteUnsigned
in interface Statistics
public double[] getSecondMinByteUnsigned()
Statistics
getSecondMinByteUnsigned
in interface Statistics
public double getMaximun()
Statistics
getMaximun
in interface Statistics
public double getMinimun()
Statistics
getMinimun
in interface Statistics
public double getMaximunByteUnsigned()
Statistics
getMaximunByteUnsigned
in interface Statistics
public double getMinimunByteUnsigned()
Statistics
getMinimunByteUnsigned
in interface Statistics
public double[] getMean()
Statistics
getMean
in interface Statistics
public double[] getVariance()
Statistics
getVariance
in interface Statistics
public boolean isCalculated()
Statistics
isCalculated
in interface Statistics
public void setCalculated(boolean calc)
setCalculated
in interface Statistics
calc
- public void setTailTrimValue(double percent, Object valueByBand)
Statistics
setTailTrimValue
in interface Statistics
percent
- Porcentaje de recortevalueByBand
- array bidimensional de enteros o doubles. Depende del tipo de dato del raster.public Object getTailTrimValue(double percent)
Statistics
getTailTrimValue
in interface Statistics
percent
- Porcentaje de recortepublic Object[] getTailTrimValue(int pos)
Statistics
getTailTrimValue
in interface Statistics
public int getTailTrimCount()
Statistics
getTailTrimCount
in interface Statistics
public abstract void resetPercent()
resetPercent
in interface Statistics
public abstract int getPercent()
getPercent
in interface Statistics
public abstract int getBandCount()
Statistics
getBandCount
in interface Statistics
public abstract void setBandCount(int bandCount)
Statistics
setBandCount
in interface Statistics
public boolean isAdvancedStatisticsCalculated()
isAdvancedStatisticsCalculated
in interface Statistics
public void calculateAdvanced() throws GridException
Statistics
calculateAdvanced
in interface Statistics
GridException
public long[] getNumberOfCells()
Statistics
getNumberOfCells
in interface Statistics
public double[][] getVarianceCovarianceMatrix()
Statistics
getVarianceCovarianceMatrix
in interface Statistics
public Statistics cloneStatistics(AbstractStatistics s)