Gest_nn: Advanced Nearest Neighbour Distance Function G

Gest_nnR Documentation

Advanced Nearest Neighbour Distance Function G

Description

Estimates the nearest neighbour distance distribution Gest from a point pattern in a window of arbitrary shape. Modified from the spatstat package function Gest to allow for usage of nearest neighbors beyond the first

Usage

Gest_nn(
  X,
  r = NULL,
  breaks = NULL,
  k = 1,
  ...,
  correction = c("rs", "km", "han"),
  domain = NULL
)

Arguments

X

The observed point pattern, from which an estimate of G(r) will be computed. An object of class ppp, or data in any format acceptable to as.ppp().

r

Optional. Numeric vector. The values of the argument r at which G(r) should be evaluated. There is a sensible default. First-time users are strongly advised not to specify this argument. See below for important conditions on r.

breaks

This argument is for internal use only.

k

Integer, or integer vector. The algorithm will compute the distance to the kth nearest neighbour. See nndist

...

Ignored.

correction

Optional. The edge correction(s) to be used to estimate G(r). A vector of character strings selected from "none", "rs", "km", "Hanisch" and "best". Alternatively correction="all" selects all options.

domain

Optional. Calculations will be restricted to this subset of the window. See Details.


rolandrolandroland/rTEM documentation built on March 29, 2025, 2:17 p.m.