Learn R Programming

CircNNTSR (version 2.0)

snntsmarginallongitude: Marginal density function for longitude of the SNNTS model for spherical data

Description

Marginal density function for longitude of the SNNTS model for spherical data

Usage

snntsmarginallongitude(data, cpars = 1, M = c(0,0))

Arguments

data
a vector of angles in radians, a row for each data point. must be between 0 and 2*pi.
cpars
vector of complex numbers of dimension prod(M+1). The first element is a real and positive number. First M[1]+1 elements correspond to longitude, next M[2]+1 elements correspond to latitude. The sum of the SQUARED moduli of the c parameters must be equ
M
vector with number of components in the SNNTS for each dimension

Value

  • The function gives the density function evaluated at data

References

Fernandez-Duran J. J. y Gregorio Dominguez, M. M. (2008) Spherical Distributions Based on Nonnegative Trigonometric Sums, Working Paper, Statistics Department, ITAM, DE-C08.6

Examples

Run this code
data(Datab6fisher_ready)
data<-Datab6fisher_ready
M<-c(1,2)
cest<-snntsmanifoldnewtonestimation(data, M)
long<-snntsmarginallongitude(seq(0,2*pi,.1),cest$cestimates[,3],M)
plot(seq(0,2*pi,.1),long,type="l")

Run the code above in your browser using DataLab