50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

CircNNTSR (version 2.3)

nntssimulation: NNTS density simulation function

Description

Simulation for the density function for the NNTS model

Usage

nntssimulation(nsim=1, cpars = 1/(2 * pi), M = 0)

Value

simulations

The function generates nsim random values from the MNNTS density function

conteo

Number of uniform random numbers used for simulations

Arguments

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

Author

Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez

Examples

Run this code
M<-3
ccoef<-nntsrandominitial(M)
data<-nntssimulation(10,ccoef,M)
data

Run the code above in your browser using DataLab