K_cross_all_box | R Documentation |
Compute all cross-K's quickly for a multivariate point pattern observed in a 2d or 3d rectangular box.
K_cross_all_box(x, r, correction = TRUE, from = NULL)
x |
list(x=coords, marks=integer or factor, bbox=bounding box, columnwise ranges) |
r |
range vector for the function to be estimated at |
correction |
use translation correction? |
from |
optional: target type "i" to compute the cross-K_ij |
By default the cross-K is computed for all two-type combinations.
An array of size (p,p,k) where p is the number of types and k is the length of r. For example, the estimated cross-K(r) of the type pair (i,j) is accessed with [i,j,].
x <- list( x = matrix(runif(3 * 1000, 0, 2), ncol=3), marks = sample(1:5, 1000, replace=T), bbox = cbind(c(0,2),c(0,2),c(0,2)))
r <- seq(0, 0.25, l = 100)
kest <- K_cross_all_box(x, r = r)
plot(r, kest[1,2,])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.