|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.landserf.process.RasterStats
public class RasterStats
Allows summary statistics to be calculated from a raster map.
Field Summary | |
---|---|
static int |
ALL_STATS
Indicates that all summary statistics are to be calculated. |
static int |
FRACD
Indicates that only fractal dimension is to be calculated. |
static int |
KURTOSIS
Indicates that only kurtosis is to be calculated. |
static int |
MEAN
Indicates that only mean is to be calculated. |
static int |
MEDIAN
Indicates that only median is to be calculated. |
static int |
MODE
Indicates that only mode is to be calculated. |
static int |
MODEF
Indicates that only modal frequency is to be calculated. |
static int |
MORAN
Indicates that only Moran's I is to be calculated. |
static int |
NUMVALS
Indicates that only number of non-null cells is to be calculated. |
static int |
PERCENTILE
Indicates that a percentile value is to be calculated. |
static int |
SKEW
Indicates that only skewness is to be calculated. |
static int |
STDEV
Indicates that only standard deviation is to be calculated. |
static int |
SUM
Indicates that only the sum of all cells is to be calculated. |
Constructor Summary | |
---|---|
RasterStats(RasterMap raster)
Initialises object with the given raster map and performs the calculations necessary to find all available summary statistics. |
|
RasterStats(RasterMap raster,
int stat)
Initialises object with the given raster map and performs the calculations necessary to find the given summary statistics. |
|
RasterStats(RasterMap raster,
int stat,
float percentile)
Initialises object with the given raster map and performs the calculations necessary to find the given summary statistics and percentile. |
Method Summary | |
---|---|
float |
getFractalD()
Reports the fractal dimension (D) of the raster values. |
float |
getKurtosis()
Reports the momental kurtosis of the raster values. |
float |
getMean()
Reports the mean of the raster values. |
float |
getMedian()
Reports the median of the raster values. |
float |
getMode()
Reports the mode of the raster values. |
int |
getModeFrequency()
Reports the frequency of the modal value of the raster. |
float[] |
getMoran()
Reports the Moran's I spatial autocorrelation coefficients of the raster values. |
int |
getNumCells()
Reports the total number of raster cells (including null values). |
int |
getNumNotNull()
Reports the total number non-null raster values. |
int |
getNumNull()
Reports the total number null raster values. |
float |
getPercentile()
Reports the value whose percentile was defined in the constructor (defaults to median if not explicitly defined). |
float |
getSkew()
Reports the momental skewness of the raster values. |
float |
getStdev()
Reports the population standard deviation of the raster values. |
float |
getSum()
Reports the sum of the raster values. |
float |
getVariogramGradient()
Reports the gradient of the best fit line though the log-log variogram. |
float |
getVariogramIntercept()
Reports the intercept of the best fit line though the log-log variogram. |
double[] |
getVariogramLogLags()
Reports variogram x values (log of lags of paired samples). |
double[] |
getVariogramLogVariance()
Reports variogram y values (log of variances of paired samples). |
float |
getVariogramRSquared()
Reports the r-squared value of the best fit line though the log-log variogram. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MEAN
public static final int NUMVALS
public static final int SUM
public static final int MEDIAN
public static final int MODE
public static final int MODEF
public static final int STDEV
public static final int SKEW
public static final int KURTOSIS
public static final int MORAN
public static final int FRACD
public static final int PERCENTILE
public static final int ALL_STATS
Constructor Detail |
---|
public RasterStats(RasterMap raster)
raster
- Raster map from which to calculate statistics.public RasterStats(RasterMap raster, int stat)
stat
should be set to ALL_STATS
or the one-argument constructor. Note that this constructor assumes that if a percentile
is required, it will be the 50%ile (median).
raster
- Raster map from which to calculate statistics.stat
- Statistic to calculate (MEAN
, MEDIAN
etc.).public RasterStats(RasterMap raster, int stat, float percentile)
stat
should be set to ALL_STATS
or the other constructor called.
raster
- Raster map from which to calculate statistics.stat
- Statistic to calculate (MEAN
, MEDIAN
etc.).percentile
- Percentile to calculate (0-100).Method Detail |
---|
public int getNumCells()
public int getNumNull()
public int getNumNotNull()
public float getMean()
public float getSum()
public float getMedian()
public float getPercentile()
public float getMode()
public int getModeFrequency()
public float getStdev()
public float getSkew()
public float getKurtosis()
public float[] getMoran()
public float getFractalD()
public double[] getVariogramLogLags()
public double[] getVariogramLogVariance()
public float getVariogramGradient()
public float getVariogramIntercept()
public float getVariogramRSquared()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |