View source: R/mnntssimulation.R
| mnntssimulation | R Documentation | 
Simulation for the density function for the MNNTS model
mnntssimulation(nsim=1, cpars = 1/(2 * pi), M = c(0,0), R=2)
nsim | 
 Number of simulations  | 
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, next M[2]+1 elements correspond to dimension two, and so on. The sum of the SQUARED moduli of the c parameters must be equal to 1/(2*pi).  | 
M | 
 Vector of length R with number of components in the MNNTS for each dimension  | 
R | 
 Number of dimensions  | 
simulations | 
 The function generates nsim random values from the MNNTS density function  | 
conteo | 
 Number of uniform random numbers used for simulations  | 
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
M<-c(2,3)
R<-length(M)
ccoef<-mnntsrandominitial(M,R)
data<-mnntssimulation(10,ccoef,M,R)
data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.