nntsdensity {CircNNTSR}R Documentation

NNTS density function

Description

Density function for the NNTS model

Usage

nntsdensity(cpars = c(0, 0), M = 0, theta)

Arguments

cpars vector of real numbers of dimension 2*M. The first M numbers are the SQUARED moduli of the c parameters, the sum must be less than 1/(2*pi). The last M numbers are the arguments of the c parameters
M number of components in the NNTS
theta an angle in radians

Value

The function gives the density function evaluated at theta

Note

The default values give the Uniform circular density

Author(s)

Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez

References

Fernandez-Duran, J.J. (2004). Circular Distributions Based on Nonnegative Trigonometric Sums, Biometrics, 60(2), 499-503.

Examples


nntsdensity(c(.01,.02,1,2),2,pi)

[Package CircNNTSR version 0.1 Index]