View source: R/snntsmarginallatitude.R
snntsmarginallatitude | R Documentation |
Marginal density function for latitude of the SNNTS model for spherical data
snntsmarginallatitude(data, cpars = 1, M = c(0,0))
data |
Vector of angles in radians, with one row for each data point. The data must be between zero and pi. |
cpars |
Vector of complex numbers of dimension prod(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 one |
M |
Vector with the number of components in the SNNTS for each dimension |
The function returns the SNNTS marginal density function for latitude evaluated at data
The parameters cpars used by this function are the transformed parameters of the SNNTS density function, which lie on the surface of the unit hypersphere
Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez
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
set.seed(200)
data(Datab6fisher_ready)
data<-Datab6fisher_ready
M<-c(1,2)
cest<-snntsmanifoldnewtonestimation(data, M,iter=150)
lat<-snntsmarginallatitude(seq(0,pi,.1),cest$cestimates[,3],M)
plot(seq(0,pi,.1),lat,type="l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.