nntsABcoefficients {CircNNTSR}R Documentation

AB coefficients

Description

This function transforms the complex parameters c to the parameters ab for a reparameterization of the density function

Usage

nntsABcoefficients(cpars = 1/sqrt(2 * pi), M = 0)

Arguments

cpars

Vector of complex numbers of dimension M+1. The first element is a real and positive number. The sum of the SQUARED moduli of the c parameters must be equal to 1/(2*pi).

M

Number of components in the NNTS

Value

The function returns the parameters ab associated with the parameters cpars and returns a vector of real numbers of size 2*M, where the first M elements are the a_k, k=1,...,M, and the next M elements are the b_k, k=1,...,M

Author(s)

Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez

Examples

#random generation of c parameters
ccoef<-nntsrandominitial(3)
ccoef
ab<-nntsABcoefficients(ccoef,3)
ab

[Package CircNNTSR version 2.3 Index]