checkerboardDensity {RDM} | R Documentation |
Estimate the checkerboard mass density
Description
Estimate a non-square checkerboard mass density
Usage
checkerboardDensity(X, Y, resolution1, resolution2)
Arguments
X |
First coordinate of the observations. |
Y |
Second coordinate of the observations. |
resolution1 |
A natural number specifying the resolution of the first component. |
resolution2 |
A natural number specifying the resolution of the second component. |
Details
This implementation modifies the code of build_checkerboard_weights() published in 'qad', version 1.0.4, available at https://CRAN.R-project.org/package=qad,
to allow for non-square checkerboard mass densities.
For more details on the implementation see ECBC
and for more information on the implemented changes, see the file 'src/code.cpp'.
Value
The estimated checkerboard mass density.
Examples
checkerboardDensity(runif(20), runif(20), 3, 3)
[Package RDM version 0.1.1 Index]