dwood: Density of the Wood bimodal distribution on the sphere

View source: R/dwood.R

Density of the Wood bimodal distribution on the sphereR Documentation

Density of the Wood bimodal distribution on the sphere

Description

Density of the Wood bimodal distribution on the sphere.

Usage

dwood(y, param, logden = FALSE)

Arguments

y

A matrix containing two columns. The first one is the latitude and the second is the longitude, both expressed in degrees.

param

A vector with the 5 parameters, in the order they are returned by the wood.mle function. That is, (\gamma, \delta, \alpha, \beta, \kappa).

logden

If you the logarithm of the density values set this to TRUE.

Details

The density of the spherical Wood distribution is computed.

Value

A vector with the (log) density values of y.

Author(s)

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

References

Wood A.T.A. (1982). A bimodal distribution on the sphere. Journal of the Royal Statistical Society, Series C, 31(1): 52–58.

See Also

dkent, desag, wood.mle

Examples

x <- rvmf(100, rnorm(3), 15)
x <- euclid.inv(x)
mod <- wood.mle(x)
d <- dwood(x, mod$info[, 1])

Directional documentation built on Oct. 12, 2023, 1:07 a.m.