Density function for the MNNTS model (the particular case has two dimensions). This is an internal function used by mnntsplot
mnntsdensity2d(x,y, cpars,M)
The function returns the density function evaluated at each row in data
Vector of angles in radians
Vector of angles in radians
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).
Vector of length two with the number of components in the MNNTS for each dimension
Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez
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