public class GridStatistic extends 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 BasicStatsband - Banda sobre la que se realizan las operaciones.public void calcFullStatistics()
throws FileNotOpenException,
RasterDriverException,
InterruptedException
BasicStatscalcFullStatistics in interface BasicStatsFileNotOpenExceptionRasterDriverExceptionInterruptedExceptionpublic double getMaxValue()
throws BandAccessException
BasicStatsgetMaxValue in interface BasicStatsBandAccessExceptionpublic double getMeanValue()
throws BandAccessException
BasicStatsgetMeanValue in interface BasicStatsBandAccessExceptionpublic double getMinValue()
throws BandAccessException
BasicStatsgetMinValue in interface BasicStatsBandAccessExceptionpublic double getVarianceValue()
throws BandAccessException
BasicStatsgetVarianceValue in interface BasicStatsBandAccessExceptionpublic boolean isCalculated()
BasicStatsisCalculated in interface BasicStatspublic void dispose()