kdesph: Spherical kernel density

Description Usage Arguments Details Value Author(s)

View source: R/kdesph.R

Description

Function for calculating the dentisty at a location x given in longitudinal and colattitudinal angles

Usage

1
kdesph(x, kappa, obs, first = "long")

Arguments

x

A numeric vector of length 2 (may be longer but only the first two entries are used). Should represent a point on the sphere for which we want to calculate the density. Given by longitude (should range from 0 to 2 * pi) and colatitude (should range from 0 to pi).

kappa

A consentration parameter

obs

A dataframe with columns long and lat. The observed point pattern on the sphere. Given by longitude (should range from 0 to 2 * pi) and colatitude (should range from 0 to pi).

first

A parameter indicating whether the first entry of X is the longitude or colatitude.

Details

This method corresponds to a mixture of Von-Mises Fisher distributions, with each observed point constituting the mean of a Von-Mises Fisher distribution, all with the same consentration parameter kappa.

Value

A numeric of lenght 1. The density at point X.

Author(s)

Andreas Christoffersen andreas@math.aau.dk


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