|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.leeds.ccg.andyt.grids.core.OutOfMemoryErrorHandler
uk.ac.leeds.ccg.andyt.grids.process.Grid2DSquareCellProcessor
uk.ac.leeds.ccg.andyt.grids.process.Grid2DSquareCellProcessorGWS
public class Grid2DSquareCellProcessorGWS
Class of methods for processing and generating geographically weighted Grid2DSquareCellDouble statistics.
| Field Summary |
|---|
| Fields inherited from class uk.ac.leeds.ccg.andyt.grids.core.OutOfMemoryErrorHandler |
|---|
_Grid2DSquareCells, _HandleOutOfMemoryErrorFalse, _HandleOutOfMemoryErrorTrue, _MemoryReserve, _Runtime |
| Constructor Summary | |
|---|---|
Grid2DSquareCellProcessorGWS()
Creates a new Grid2DSquareCellDoubleProcessorGWS |
|
Grid2DSquareCellProcessorGWS(java.io.File workspace)
Creates a new instance of Grid2DSquareCellProcessorGWS. |
|
Grid2DSquareCellProcessorGWS(java.io.File workspace,
boolean appendToLogFile)
Creates a new instance of Grid2DSquareCellProcessorGWS. |
|
| Method Summary | |
|---|---|
Grid2DSquareCellDouble[] |
geometricDensity(Grid2DSquareCellDouble grid,
double distance,
Grid2DSquareCellDoubleFactory gridFactory)
Returns an Grid2DSquareCellDouble[] containing geometric density surfaces at a range of scales: result[ 0 ] - is the result at the first scale ( double the cellsize of grid ) result[ 1 ] - if it exists is the result at the second scale ( double the cellsize of result[ 0 ] ) result[ n ] - if it exists is the result at the ( n + 1 )th scale ( double the cellsize of result[ n - 1 ] ) The algorithm used for generating a geometric density surface is described in: Turner A (2000) Density Data Generation for Spatial Data Mining Applications. |
Grid2DSquareCellDouble[] |
regionBivariateStatistics(Grid2DSquareCellDouble grid0,
Grid2DSquareCellDouble grid1,
java.util.Vector statistics,
double distance,
double weightIntersect,
double weightFactor,
Grid2DSquareCellDoubleFactory gridFactory)
Returns an Grid2DSquareCellDouble[] result with elements based on statistics and values based on bivariate comparison of grid0 and grid1, distance, weightIntersect and weightFactor. |
double[] |
regionUnivariateStatistics(Grid2DSquareCellDouble grid,
int rowIndex,
int colIndex,
java.lang.String statistic,
double distance,
double weightIntersect,
double weightFactor)
TODO |
java.util.Vector |
regionUnivariateStatistics(Grid2DSquareCellDouble grid,
java.util.Vector statistics,
double distance,
double weightIntersect,
double weightFactor,
Grid2DSquareCellDoubleFactory gridFactory)
Returns a Vector containing Grid2DSquareCellDoubles. |
java.util.Vector |
regionUnivariateStatisticsCrossScale(Grid2DSquareCellDouble grid,
java.util.Vector statistics,
double distance,
double weightIntersept,
double weightFactor,
double scaleIntersept,
double scaleFactor,
Grid2DSquareCellDoubleFactory gridFactory)
TODO |
java.util.Vector |
regionUnivariateStatisticsSlow(Grid2DSquareCellDouble grid,
java.util.Vector statistics,
double distance,
double weightIntersect,
double weightFactor,
Grid2DSquareCellDoubleFactory gridFactory)
Returns a Vector containing Grid2DSquareCellDoubles |
| Methods inherited from class uk.ac.leeds.ccg.andyt.grids.process.Grid2DSquareCellProcessor |
|---|
_Output, _OutputESRIAsciiGrid, _OutputImage, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, aggregate, aggregate, angle, angle, angle, copyAndSetUpNewLog, distance, distance, distance, get_Directory, getGrid2DSquareCell, getGrid2DSquareCell, getRowProcessData, getRowProcessInitialData, getTime0, getTime0, linearRescale, log, log, log, logRescale, mask, mask, mask, mask, set_Directory, set_Directory, set_Directory, setValueALittleBitLarger, setValueALittleBitSmaller |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Grid2DSquareCellProcessorGWS()
throws java.io.IOException
java.io.IOException
public Grid2DSquareCellProcessorGWS(java.io.File workspace)
throws java.io.IOException
workspace -
java.io.IOException
public Grid2DSquareCellProcessorGWS(java.io.File workspace,
boolean appendToLogFile)
throws java.io.IOException
workspace - appendToLogFile -
java.io.IOException| Method Detail |
|---|
public java.util.Vector regionUnivariateStatistics(Grid2DSquareCellDouble grid,
java.util.Vector statistics,
double distance,
double weightIntersect,
double weightFactor,
Grid2DSquareCellDoubleFactory gridFactory)
grid - the Grid2DSquareCellDouble to be processeddistance - the distance defining the region within which values will
be used. At distances weights if applied are zeroweightIntersect - typically a number between 0 and 1 which controls
the weight applied at the centre of the kernelweightFactor - = 0.0d all values within distance will be equally weighted
> 0.0d means the edge of the kernel has a zero weight
< 0.0d means that the edage of the kernel has a weight of 1
> -1.0d && < 1.0d provides an inverse decaygridFactory - the Abstract2DSquareCellDoubleFactory used to create grids
public java.util.Vector regionUnivariateStatisticsSlow(Grid2DSquareCellDouble grid,
java.util.Vector statistics,
double distance,
double weightIntersect,
double weightFactor,
Grid2DSquareCellDoubleFactory gridFactory)
grid - the Grid2DSquareCellDouble to be processeddistance - the distance defining the region within which values will
be used. At distances weights if applied are zeroweightIntersect - typically a number between 0 and 1 which controls
the weight applied at the centre of the kernelweightFactor - = 0.0d all values within distance will be equally weighted
> 0.0d means the edge of the kernel has a zero weight
< 0.0d means that the edage of the kernel has a weight of 1
> -1.0d && < 1.0d provides an inverse decaygridFactory - the Abstract2DSquareCellDoubleFactory used to create grids
public double[] regionUnivariateStatistics(Grid2DSquareCellDouble grid,
int rowIndex,
int colIndex,
java.lang.String statistic,
double distance,
double weightIntersect,
double weightFactor)
rowIndex - the rowIndex of the cell about which the statistics are
returnedcolIndex - the rowIndex of the cell about which the statistics are
returned
public java.util.Vector regionUnivariateStatisticsCrossScale(Grid2DSquareCellDouble grid,
java.util.Vector statistics,
double distance,
double weightIntersept,
double weightFactor,
double scaleIntersept,
double scaleFactor,
Grid2DSquareCellDoubleFactory gridFactory)
scaleIntersept - typically a number between 0 and 1 which controls
the weight applied at the initial scalescaleFactor - = 0.0d all scales equally weighted
> 0.0d means that the last scale has a zero weight
< 0.0d means that the final scale has a weight of 1
> -1.0d && < 1.0d provides an inverse decay on scale weightinggridFactory - the Abstract2DSquareCellDoubleFactory used to create grids
public Grid2DSquareCellDouble[] geometricDensity(Grid2DSquareCellDouble grid,
double distance,
Grid2DSquareCellDoubleFactory gridFactory)
grid - - the input Grid2DSquareCellDoubledistance - - the distance limiting the maximum scale of geometric density surface producedgridFactory - - the Grid2DSquareCellDoubleFactory to be used in processing
public Grid2DSquareCellDouble[] regionBivariateStatistics(Grid2DSquareCellDouble grid0,
Grid2DSquareCellDouble grid1,
java.util.Vector statistics,
double distance,
double weightIntersect,
double weightFactor,
Grid2DSquareCellDoubleFactory gridFactory)
grid0 - the Grid2DSquareCellDouble to be regionBivariateStatisticsd with grid1grid1 - the Grid2DSquareCellDouble to be regionBivariateStatisticsd with grid0statistics - a String[] whose elements may be "diff", "abs", "corr1"
, "corr2", "zscore". If they are then the respective
Geographically Weighted Statistics (GWS) are returned
in the result arraydistance - the distance defining the region within which values will
be usedweightIntersect - typically a number between 0 and 1 which controls
the weight applied at the centre of the kernelweightFactor - = 0.0d all values within distance will be equally weighted
> 0.0d means the edge of the kernel has a zero weight
< 0.0d means that the edage of the kernel has a weight of 1
> -1.0d && < 1.0d provides an inverse decaygridFactory - the Abstract2DSquareCellDoubleFactory used to create grids
TODO:
Check and ensure that reasonable answers are returned for grids with different spatial frames.
(NB. Sensibly the two grids being correlated should have the same no data space.)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||