K_cross_all_box: Quick cross K, rectangle translation border correction

View source: R/K-cross-all.R

K_cross_all_boxR Documentation

Quick cross K, rectangle translation border correction

Description

Compute all cross-K's quickly for a multivariate point pattern observed in a 2d or 3d rectangular box.

Usage

K_cross_all_box(x, r, correction = TRUE, from = NULL)

Arguments

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

Details

By default the cross-K is computed for all two-type combinations.

Value

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,].

Examples

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,])


antiphon/Kcross documentation built on Oct. 21, 2024, 5:45 p.m.