Last data update: 2014.03.03

R: Marginal density function for latitude of the SNNTS model for...
snntsmarginallatitudeR Documentation

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

Description

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

Usage

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

Arguments

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

Value

The function returns the SNNTS marginal density function for latitude evaluated at data

Note

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

Author(s)

Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez

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

data(Datab6fisher_ready)
data<-Datab6fisher_ready
M<-c(1,2)
cest<-snntsmanifoldnewtonestimation(data, M)
lat<-snntsmarginallatitude(seq(0,pi,.1),cest$cestimates[,3],M)
plot(seq(0,pi,.1),lat,type="l")

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(CircNNTSR)

Attaching package: 'CircNNTSR'

The following object is masked from 'package:grDevices':

    trans3d

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/CircNNTSR/snntsmarginallatitude.Rd_%03d_medium.png", width=480, height=480)
> ### Name: snntsmarginallatitude
> ### Title: Marginal density function for latitude of the SNNTS model for
> ###   spherical data
> ### Aliases: snntsmarginallatitude
> 
> ### ** Examples
> 
> data(Datab6fisher_ready)
> data<-Datab6fisher_ready
> M<-c(1,2)
> cest<-snntsmanifoldnewtonestimation(data, M)
> lat<-snntsmarginallatitude(seq(0,pi,.1),cest$cestimates[,3],M)
> plot(seq(0,pi,.1),lat,type="l")
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>