local.den.engine: Find the local intensity density estimate based on nearest...

View source: R/rapt_NNDE.R

local.den.engineR Documentation

Find the local intensity density estimate based on nearest neighbors.

Description

Helper for nndensity.pp3.

Usage

local.den.engine(bdist, nnk, k, dz, par = TRUE, cores = 7)

Arguments

bdist

Result from bdist.points3.multi giving shortest distance to boundary in the x, y, and z directions.

nnk

Result from nndist or nncross containing nearest neighbor distances.

k

Vector of nn#s to calculate estimate for.

dz

The spacing for numeric integration over the z direction to determine edge corrections.

par

TRUE or FALSE: whether or not to calculate in parallel

cores

If par = TRUE, this is the number of cores to use for the parallel calculation.

Value

A data.frame with intensity estimates for each value of k (# of nearest neighbors).

See Also

nndensity.pp3


aproudian2/rapt documentation built on Dec. 15, 2022, 4:24 a.m.