
Simulation for the density function for the NNTS model
nntssimulation(nsim=1, cpars = 1/(2 * pi), M = 0)
The function generates nsim random values from the MNNTS density function
Number of uniform random numbers used for simulations
Number of simulations
Parameters of the model. A vector of complex numbers of dimension M+1. The sum of the squared moduli of the c parameters must be equal to 1/(2*pi).
Number of components in the NNTS model
Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez
M<-3
ccoef<-nntsrandominitial(M)
data<-nntssimulation(10,ccoef,M)
data
Run the code above in your browser using DataLab