public class GridStatistic extends java.lang.Object implements BasicStats
Modifier and Type | Field and Description |
---|---|
protected int |
bandToOperate |
Constructor and Description |
---|
GridStatistic(GridImpl grid) |
Modifier and Type | Method and Description |
---|---|
void |
calcFullStatistics()
Calcula las estadisticas recorriendo todo el fichero.
|
void |
dispose() |
protected void |
finalize() |
double |
getMaxValue()
Obtiene el valor máximo del grid
|
double |
getMeanValue()
Obtiene el valor médio del grid
|
double |
getMinValue()
Obtiene el valor míximo del grid
|
double |
getVarianceValue()
Obtiene la varianza
|
boolean |
isCalculated()
Consulta si las estadisticas han sido calculadas o no.
|
void |
setBandToOperate(int band)
Asigna la banda sobre la que se realizan las operaciones.
|
void |
setStatisticsCalculated(boolean calc)
Asigna el flag que informa si las estadisticas están calculadas para un grid concreto
|
public GridStatistic(GridImpl grid)
public void setStatisticsCalculated(boolean calc)
calc
- true si están calculadas y false si no lo estánpublic void setBandToOperate(int band)
setBandToOperate
in interface BasicStats
band
- Banda sobre la que se realizan las operaciones.public void calcFullStatistics() throws FileNotOpenException, RasterDriverException, java.lang.InterruptedException
BasicStats
calcFullStatistics
in interface BasicStats
FileNotOpenException
RasterDriverException
java.lang.InterruptedException
public double getMaxValue() throws BandAccessException
BasicStats
getMaxValue
in interface BasicStats
BandAccessException
public double getMeanValue() throws BandAccessException
BasicStats
getMeanValue
in interface BasicStats
BandAccessException
public double getMinValue() throws BandAccessException
BasicStats
getMinValue
in interface BasicStats
BandAccessException
public double getVarianceValue() throws BandAccessException
BasicStats
getVarianceValue
in interface BasicStats
BandAccessException
public boolean isCalculated()
BasicStats
isCalculated
in interface BasicStats
public void dispose()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable