Learn R Programming

CircNNTSRaxial (version 0.1.0)

axialnntsrandominitial: Initial random point

Description

This function generates a random point on the surface of the (M+1)-dimensional hypersphere with radius 1/sqrt(pi) which corresponds to a random parameter vector of the NNTS axial density

Usage

axialnntsrandominitial(M=1)

Value

res

A complex vector of size M+1 which can be used as a valid initial point for the estimation functions

Arguments

M

Number of components in the NNTS axial model

Author

Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez

Examples

Run this code
set.seed(12345)
axialnntsrandominitial(3)
axialnntsrandominitial(7)

Run the code above in your browser using DataLab