nncrossden.pp3: Similar to 'nndensity.pp3', but specifically for marked...

View source: R/rapt_NNDE.R

nncrossden.pp3R Documentation

Similar to nndensity.pp3, but specifically for marked patterns with a global intensity inhomogeneity.

Description

Calculates the 3D nearest-neighbor intensity estimate of a point process at either a grid of points or at the point locations in the data set. Requires two point patterns: One (X) that contains just points of the type you want to estimate the intesnity of. A second (Y) that contains all points from the sample (note that this includes the points from pattern X) for removing global intensity. Note that this function runs faster on linux and mac machines than windows, but will work on both.

Usage

nncrossden.pp3(
  X,
  Y,
  k,
  nx,
  ny,
  nz,
  at.points = FALSE,
  nsplit = 1000,
  cores = 8
)

Arguments

X

The point pattern to estimate the intensity of.

Y

The full point pattern to estimate global intensity.

k

Vector containing the nearest-neighbor #s that the estimate should be calculated for.

nx, ny, nz

If estimating on a grid, the number of grid points in x, y, and z.

at.points

TRUE or FALSE. Whether or not to estimate intensity at points in pattern. If TRUE, nx, ny, and nz are not used.

nsplit

In this function, large pp3 objects are split into multiple smaller data sets so that the memory is not overloaded while doing computations. This parameter is the number of points per split set.

cores

Number of cores to use for parallelization. Set to one for serial calculation.

Value

List containing: [1] A data frame of the intensity estimates for each nearest neighbor value. [2] The coordinates of the estimates. [3] The coordinates of the original points from the data set. [4] A vector containing all k values tested.


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