View source: R/nntssimulation.R
nntssimulation | R Documentation |
Simulation for the density function for the NNTS model
nntssimulation(nsim=1, cpars = 1/(2 * pi), M = 0)
nsim |
Number of simulations |
cpars |
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). |
M |
Number of components in the NNTS model |
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
M<-3
ccoef<-nntsrandominitial(M)
data<-nntssimulation(10,ccoef,M)
data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.