stratRejectionSampler_normal | R Documentation |
Simulate data using a stratified rejection sampler from a point process with an isotropic multivariate normal decay kernel.
stratRejectionSampler_normal( numPoints, lowerCoords, upperCoords, s, windowIntensities, sd )
numPoints |
Number of spatial points to generate. |
lowerCoords, upperCoords |
Matrices of lower and upper x- and y-coordinates of a set of detection windows. One row for each window. |
s |
Vector of x- and y-coordinates of of the isotropic multivariate normal distribution mean. |
windowIntensities |
Vector of integrated intensities over all detection windows. |
sd |
Standard deviation of the isotropic multivariate normal distribution. |
A matrix of x- and y-coordinates of the generated points. One row corresponds to one point.
Joseph D. Chipperfield and Wei Zhang
numPoints <- 10 lowerObsCoords <- matrix(c(0, 0, 1, 0, 0, 1, 1, 1), nrow = 4, byrow = TRUE) upperObsCoords <- matrix(c(1, 1, 2, 1, 1, 2, 2, 2), nrow = 4, byrow = TRUE) s <- c(1, 1) windowIntensities <- c(1:4) sd <- 0.1 set.seed(0) stratRejectionSampler_normal(numPoints, lowerObsCoords, upperObsCoords, s, windowIntensities, sd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.