|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.leeds.ccg.andyt.grids.utilities.ErrorHandler 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.process.Grid2DSquareCellProcessor |
---|
grid2DSquareCells, log, logIndentation, startTime, workspace |
Fields inherited from class uk.ac.leeds.ccg.andyt.grids.utilities.ErrorHandler |
---|
handleOutOfMemoryErrorFalse, handleOutOfMemoryErrorTrue, memoryReserve |
Constructor Summary | |
---|---|
Grid2DSquareCellProcessorGWS()
Creates a new Grid2DSquareCellDoubleProcessorGWS |
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 |
---|
add, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, aggregate, aggregate, copyAndSetUpNewLog, distanceToDataValue, divide, freeMemoryOrThrowError, getGrid2DSquareCells, getRowProcessData, getRowProcessInitialData, getTime0, getWorkspace, initWorkspace, linearRescale, linearRescale, log, log, logRescale, logRescale, mask, mask, mask, mask, mask, mask, minus, multiply, replace, setValueALittleBitLarger, setValueALittleBitLarger, setValueALittleBitSmaller, setValueALittleBitSmaller, setWorkspace, setWorkspace |
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.utilities.ErrorHandler |
---|
clearMemoryReserve, initMemoryReserve, initMemoryReserve |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Grid2DSquareCellProcessorGWS()
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 gridspublic 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 gridspublic 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
returnedpublic 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 gridspublic 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 processingpublic 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 |