snntssimulation {CircNNTSR}R Documentation

SNNTS density simulation function

Description

Simulation for the density function for the SNNTS model

Usage

snntssimulation(nsim=1, cpars =(1/(2*pi))^2, M = c(0,0))

Arguments

nsim

Number of simulations

cpars

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 longitude, the next M[2]+1 elements correspond to latitude. The sum of the squared moduli of the c parameters must be equal to one

M

Vector with the number of components in the SNNTS for each dimension

Value

simulations

The function generates nsim random values from the SNNTS density function

conteo

Number of uniform random numbers used for simulations

Author(s)

Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez

Examples

M<-c(2,3)
R<-length(M)
ccoef<-mnntsrandominitial(M,R)
data<-mnntssimulation(10,ccoef,M,R)
data

[Package CircNNTSR version 2.2-1 Index]