public class SimpleProviderStatistics extends AbstractStatistics
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
forceToRecalc |
protected int |
percent |
protected RasterProvider |
provider |
bandCount, calculated, complete, max, maxByteUnsigned, mean, min, minByteUnsigned, nValues, secondMax, secondMaxByteUnsigned, secondMin, secondMinByteUnsigned, tailTrim, tailTrimValues, variance| Constructor and Description |
|---|
SimpleProviderStatistics()
Constructor for persistence purposes
|
SimpleProviderStatistics(RasterProvider prov)
Sets the provider to calculate statistics
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculate(double scale)
Throws the thread which figure out statistics
|
Statistics |
cloneStatistics()
Clones this object
|
void |
forceToRecalc()
This call force the next statistics request are not read from the RMF file.
|
int |
getBandCount()
Gets the number of bands
|
RasterProvider |
getDataProvider()
Gets the dataset
|
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
|
int |
getPercent()
Gets the percentaje of progress calculating the histogram
|
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.
|
java.lang.Object |
getTailTrimValue(double percent)
Obtiene un valor de recorte de colas para un porcentaje dado.
|
java.lang.Object[] |
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.
|
void |
resetPercent()
Resets the percentaje of progress
|
void |
setBandCount(int bandCount)
Asigna el número de bandas
|
void |
setCalculated(boolean calc)
Sets the flag that report whether statistics are calculated
|
void |
setMax(double[] max)
Sets the maximum value of the 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 |
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,
java.lang.Object valueByBand)
Asigna un valor de recorte de colas para un porcentaje dado.
|
void |
setVariance(double[] variance)
Asigna la varianza
|
static Statistics |
union(RasterProvider prov,
java.util.List<RasterProvider> list)
Joins the this statistic object with the parameter and
returns a new Statistics object.
|
calculateAdvanced, cloneStatistics, finalize, getNumberOfCells, getNumberOfValues, getVarianceCovarianceMatrix, isAdvancedStatisticsCalculated, registerPersistent, setNumberOfValuesprotected RasterProvider provider
protected int percent
protected boolean forceToRecalc
public SimpleProviderStatistics(RasterProvider prov)
public SimpleProviderStatistics()
public RasterProvider getDataProvider()
public void setMax(double[] max)
setMax in class AbstractStatisticsMaximum - value by bandpublic void setSecondMax(double[] smax)
setSecondMax in class AbstractStatisticspublic void setMaxRGB(double[] max)
setMaxRGB in class AbstractStatisticspublic void setSecondMaxRGB(double[] smax)
setSecondMaxRGB in class AbstractStatisticspublic void setMean(double[] mean)
setMean in class AbstractStatisticspublic void setMin(double[] min)
setMin in class AbstractStatisticspublic void setSecondMin(double[] smin)
setSecondMin in class AbstractStatisticspublic void setMinRGB(double[] min)
setMinRGB in class AbstractStatisticspublic void setSecondMinRGB(double[] smin)
setSecondMinRGB in class AbstractStatisticspublic void setVariance(double[] variance)
setVariance in class AbstractStatisticspublic double[] getMin()
StatisticsgetMin in interface StatisticsgetMin in class AbstractStatisticspublic double[] getMax()
StatisticsgetMax in interface StatisticsgetMax in class AbstractStatisticspublic double[] getSecondMax()
StatisticsgetSecondMax in interface StatisticsgetSecondMax in class AbstractStatisticspublic double[] getSecondMin()
StatisticsgetSecondMin in interface StatisticsgetSecondMin in class AbstractStatisticspublic double[] getMinByteUnsigned()
StatisticsgetMinByteUnsigned in interface StatisticsgetMinByteUnsigned in class AbstractStatisticspublic double[] getMaxByteUnsigned()
StatisticsgetMaxByteUnsigned in interface StatisticsgetMaxByteUnsigned in class AbstractStatisticspublic double[] getSecondMaxByteUnsigned()
StatisticsgetSecondMaxByteUnsigned in interface StatisticsgetSecondMaxByteUnsigned in class AbstractStatisticspublic double[] getSecondMinByteUnsigned()
StatisticsgetSecondMinByteUnsigned in interface StatisticsgetSecondMinByteUnsigned in class AbstractStatisticspublic double getMaximun()
StatisticsgetMaximun in interface StatisticsgetMaximun in class AbstractStatisticspublic double getMinimun()
StatisticsgetMinimun in interface StatisticsgetMinimun in class AbstractStatisticspublic double getMaximunByteUnsigned()
StatisticsgetMaximunByteUnsigned in interface StatisticsgetMaximunByteUnsigned in class AbstractStatisticspublic double getMinimunByteUnsigned()
StatisticsgetMinimunByteUnsigned in interface StatisticsgetMinimunByteUnsigned in class AbstractStatisticspublic double[] getMean()
StatisticsgetMean in interface StatisticsgetMean in class AbstractStatisticspublic double[] getVariance()
StatisticsgetVariance in interface StatisticsgetVariance in class AbstractStatisticspublic int getBandCount()
StatisticsgetBandCount in interface StatisticsgetBandCount in class AbstractStatisticspublic void setBandCount(int bandCount)
setBandCount in interface StatisticssetBandCount in class AbstractStatisticsbandCount - public void calculate(double scale)
throws FileNotOpenException,
RasterDriverException,
ProcessInterruptedException
Statisticspublic boolean isCalculated()
StatisticsisCalculated in interface StatisticsisCalculated in class AbstractStatisticspublic void setCalculated(boolean calc)
setCalculated in interface StatisticssetCalculated in class AbstractStatisticscalc - public void setTailTrimValue(double percent,
java.lang.Object valueByBand)
StatisticssetTailTrimValue in interface StatisticssetTailTrimValue in class AbstractStatisticspercent - Porcentaje de recortevalueByBand - array bidimensional de enteros o doubles. Depende del tipo de dato del raster.public java.lang.Object getTailTrimValue(double percent)
StatisticsgetTailTrimValue in interface StatisticsgetTailTrimValue in class AbstractStatisticspercent - Porcentaje de recortepublic java.lang.Object[] getTailTrimValue(int pos)
StatisticsgetTailTrimValue in interface StatisticsgetTailTrimValue in class AbstractStatisticspublic int getTailTrimCount()
StatisticsgetTailTrimCount in interface StatisticsgetTailTrimCount in class AbstractStatisticspublic void resetPercent()
resetPercent in interface StatisticsresetPercent in class AbstractStatisticspublic int getPercent()
getPercent in interface StatisticsgetPercent in class AbstractStatisticspublic void forceToRecalc()
forceToRecalc - public static Statistics union(RasterProvider prov, java.util.List<RasterProvider> list)
stats - public Statistics cloneStatistics()
Statistics