dsespc: Density of the SESPC distribution

View source: R/dsespc.R

Density of the SESPC distributionR Documentation

Density of the SESPC distribution

Description

Density of the SESPC distribution.

Usage

dsespc(y, mu, theta, logden = FALSE)

Arguments

y

A matrix or a vector with the data expressed in Euclidean coordinates, i.e. unit vectors.

mu

The mean vector the SESPC distribution, a vector in R^3.

theta

The two \theta parameters of the SESPC distribution.

logden

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

Details

The density of the SESPC 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

Tsagris M. and Alzeley O. (2024). Circular and spherical projected Cauchy distributions: A Novel Framework for Circular and Directional Data Modeling. https://arxiv.org/pdf/2302.02468.pdf

Mardia K. V. and Jupp P. E. (2000). Directional statistics. Chicester: John Wiley & Sons.

See Also

desag, sespc.mle

Examples

m <- colMeans( as.matrix( iris[,1:3] ) )
y <- rsespc(1000, m, c(1, 1))
mod <- sespc.mle(y)
dsespc( y, mod$mu, mod$theta)

Directional documentation built on Oct. 30, 2024, 9:15 a.m.