nntssimulation: NNTS density simulation function

View source: R/nntssimulation.R

nntssimulationR Documentation

NNTS density simulation function

Description

Simulation for the density function for the NNTS model

Usage

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

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

Value

simulations

The function generates nsim random values from the MNNTS density function

conteo

Number of uniform random numbers used for simulations

Author(s)

Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez

Examples

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

CircNNTSR documentation built on Sept. 1, 2023, 9:07 a.m.