Learn R Programming

CircNNTSRaxial (version 0.1.0)

axialnntsdensity: NNTS density function for axial data

Description

Density function for the NNTS axial model

Usage

axialnntsdensity(data, cpars = 1/sqrt(pi), M = 0)

Value

res

The function returns a 1 by R matrix with the density function evaluated at each element of the vector data of size R

Arguments

data

Vector of size R with axial angles in radians

cpars

Vector of complex numbers of dimension M+1. The first element is a real and positive number. The sum of the squared moduli of the c parameters must be equal to 1/pi

M

Number of components in the NNTS axial model

Author

Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez

References

Fernandez-Duran, J.J. and Gregorio-Dominguez, M.M. (2025). Multimodal distributions for circular axial data. arXiv:2504.04681 [stat.ME] (available at https://arxiv.org/abs/2504.04681)

Examples

Run this code
ccoef<-axialnntsrandominitial(3)
axialnntsdensity(1,ccoef,3)
axialnntsdensity(pi/2,ccoef,3)
axialnntsdensity(c(1,pi/2),ccoef,3)

Run the code above in your browser using DataLab