Learn R Programming

CircNNTSR (version 2.3)

nntsABDensity: Density function with AB coefficients

Description

Density function expressed in terms of the ab parameters at theta

Usage

nntsABDensity(theta, cpars = 1/sqrt(2 * pi), M = 0)

Value

Returns the density function in terms of the ab coefficients evaluated at theta

Arguments

theta

Vector of 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/(2*pi)

M

Number of components in the NNTS

Author

Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez

Examples

Run this code
ccoef<-nntsrandominitial(3)
nntsABDensity(1,ccoef,3)
nntsABDensity(1+2*pi,ccoef,3)

Run the code above in your browser using DataLab