Learn R Programming

CircNNTSR (version 2.3)

nntsDistribution: NNTS Distribution function

Description

Cumulative distribution function in terms of the c parameters at theta, measured in radians [0,2*pi).

Usage

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

Value

The function returns the value of the distribution function evaluated at each component of theta

Arguments

theta

Vector of angles in radians at which the distribution is computed

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)
nntsDistribution(c(0,pi/2,pi,2*pi-0.00000001,2*pi),ccoef,3)

Run the code above in your browser using DataLab