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.
|
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
|
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,
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,
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, setNumberOfValues
protected 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 AbstractStatistics
Maximum
- value by bandpublic void setSecondMax(double[] smax)
setSecondMax
in class AbstractStatistics
public void setMaxRGB(double[] max)
setMaxRGB
in class AbstractStatistics
public void setSecondMaxRGB(double[] smax)
setSecondMaxRGB
in class AbstractStatistics
public void setMean(double[] mean)
setMean
in class AbstractStatistics
public void setMin(double[] min)
setMin
in class AbstractStatistics
public void setSecondMin(double[] smin)
setSecondMin
in class AbstractStatistics
public void setMinRGB(double[] min)
setMinRGB
in class AbstractStatistics
public void setSecondMinRGB(double[] smin)
setSecondMinRGB
in class AbstractStatistics
public void setVariance(double[] variance)
setVariance
in class AbstractStatistics
public double[] getMin()
Statistics
getMin
in interface Statistics
getMin
in class AbstractStatistics
public double[] getMax()
Statistics
getMax
in interface Statistics
getMax
in class AbstractStatistics
public double[] getSecondMax()
Statistics
getSecondMax
in interface Statistics
getSecondMax
in class AbstractStatistics
public double[] getSecondMin()
Statistics
getSecondMin
in interface Statistics
getSecondMin
in class AbstractStatistics
public double[] getMinByteUnsigned()
Statistics
getMinByteUnsigned
in interface Statistics
getMinByteUnsigned
in class AbstractStatistics
public double[] getMaxByteUnsigned()
Statistics
getMaxByteUnsigned
in interface Statistics
getMaxByteUnsigned
in class AbstractStatistics
public double[] getSecondMaxByteUnsigned()
Statistics
getSecondMaxByteUnsigned
in interface Statistics
getSecondMaxByteUnsigned
in class AbstractStatistics
public double[] getSecondMinByteUnsigned()
Statistics
getSecondMinByteUnsigned
in interface Statistics
getSecondMinByteUnsigned
in class AbstractStatistics
public double getMaximun()
Statistics
getMaximun
in interface Statistics
getMaximun
in class AbstractStatistics
public double getMinimun()
Statistics
getMinimun
in interface Statistics
getMinimun
in class AbstractStatistics
public double getMaximunByteUnsigned()
Statistics
getMaximunByteUnsigned
in interface Statistics
getMaximunByteUnsigned
in class AbstractStatistics
public double getMinimunByteUnsigned()
Statistics
getMinimunByteUnsigned
in interface Statistics
getMinimunByteUnsigned
in class AbstractStatistics
public double[] getMean()
Statistics
getMean
in interface Statistics
getMean
in class AbstractStatistics
public double[] getVariance()
Statistics
getVariance
in interface Statistics
getVariance
in class AbstractStatistics
public int getBandCount()
Statistics
getBandCount
in interface Statistics
getBandCount
in class AbstractStatistics
public void setBandCount(int bandCount)
setBandCount
in interface Statistics
setBandCount
in class AbstractStatistics
bandCount
- public void calculate(double scale) throws FileNotOpenException, RasterDriverException, ProcessInterruptedException
Statistics
public boolean isCalculated()
Statistics
isCalculated
in interface Statistics
isCalculated
in class AbstractStatistics
public void setCalculated(boolean calc)
setCalculated
in interface Statistics
setCalculated
in class AbstractStatistics
calc
- public void setTailTrimValue(double percent, Object valueByBand)
Statistics
setTailTrimValue
in interface Statistics
setTailTrimValue
in class AbstractStatistics
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
getTailTrimValue
in class AbstractStatistics
percent
- Porcentaje de recortepublic Object[] getTailTrimValue(int pos)
Statistics
getTailTrimValue
in interface Statistics
getTailTrimValue
in class AbstractStatistics
public int getTailTrimCount()
Statistics
getTailTrimCount
in interface Statistics
getTailTrimCount
in class AbstractStatistics
public void resetPercent()
resetPercent
in interface Statistics
resetPercent
in class AbstractStatistics
public int getPercent()
getPercent
in interface Statistics
getPercent
in class AbstractStatistics
public void forceToRecalc()
forceToRecalc
- public static Statistics union(RasterProvider prov, List<RasterProvider> list)
stats
- public Statistics cloneStatistics()
Statistics