rkdesph: Simulate from Spherical kernel density

Description Usage Arguments Value Author(s)

View source: R/rkdesph.R

Description

Function for simulating under a spherical kernel density.

Usage

1
rkdesph(kappa, obs, nsim = 1, np = "Poisson", drop = TRUE, ncores = 1L)

Arguments

kappa

A consentration parameter

obs

A matrix with rows constituting either cartesian or spherical coordinates of the points. If obs is spicified by spherical coordinates sph_coords must be TRUE. On the other hand if obs is spicified by cartesian coordinates sph_coords must be FALSE. Default is TRUE. The points need not have norm 1.

nsim

The number of point patterns to be simulated.

np

Either a single number indicating the exact number of points in the simulated pattern or "Poisson" in which case the number of points in each simulated pattern will be Poisson distributed with mean equal to the number of points in the observed pattern.

drop

A logical value indicating whether the output should be a sp2 object of a list of sp2 objects. This only has an effect if nsim == 1.

ncores

Number of cores for multiple simulation.

Value

A sp2 object or a list of sp2 object with length equal to nsim. See also under drop for further details.

Author(s)

Andreas Dyreborg Christoffersen andreas@math.aau.dk


adchSTATS/spatstatsphadd documentation built on May 28, 2019, 3:54 p.m.