Learn R Programming

CircNNTSR (version 2.0)

nntsABcoefficients: 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 pararameters cpars. Returns a vector of size 2*M, the first M elements are the a_k, k=1,...,M, and the next M elements are the b_k, k=1,...,M

Examples

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

Run the code above in your browser using DataLab