Learn R Programming

CircNNTSR (version 2.3)

mnntsdensity2d: MNNTS density function (the particular case has two dimensions)

Description

Density function for the MNNTS model (the particular case has two dimensions). This is an internal function used by mnntsplot

Usage

mnntsdensity2d(x,y, cpars,M)

Value

The function returns the density function evaluated at each row in data

Arguments

x

Vector of angles in radians

y

Vector of angles in radians

cpars

Parameters of the model. A vector of complex numbers of dimension prod(M+1). The first element is a real and positive number. The first M[1]+1 elements correspond to dimension one, the next M[2]+1 elements correspond to dimension two. The sum of the SQUARED moduli of the c parameters must be equal to 1/(2*pi).

M

Vector of length two with the number of components in the MNNTS for each dimension

Author

Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez

References

Fernandez-Duran, J.J. and Gregorio-Dominguez, M.M. (2009) Multivariate Angular Distributions Based on Multiple Nonnegative Trigonometric Sums, Working Paper, Statistics Department, ITAM, DE-C09.1