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
...
Arguments passed to the function curve
Examples
data(Turtles_radians)
#Empirical analysis of data
Turtles_hist<-hist(Turtles_radians,breaks=10,freq=FALSE)
#Estimation of the NNTS density with 3 componentes for data
est<-nntsmanifoldnewtonestimation(Turtles_radians,3)
est
#plot the estimated density
nntsplot(est$cestimates[,2],3)
#add the histogram to the estimated density plot
plot(Turtles_hist, freq=FALSE, add=TRUE)
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/nntsplot.Rd_%03d_medium.png", width=480, height=480)
> ### Name: nntsplot
> ### Title: Plots the NNTS density
> ### Aliases: nntsplot
>
> ### ** Examples
>
> data(Turtles_radians)
> #Empirical analysis of data
> Turtles_hist<-hist(Turtles_radians,breaks=10,freq=FALSE)
> #Estimation of the NNTS density with 3 componentes for data
> est<-nntsmanifoldnewtonestimation(Turtles_radians,3)
> est
$cestimates
k cestimates
1 0 0.28645175+0.00000000i
2 1 0.11655438-0.12669303i
3 2 -0.14659000-0.16080633i
4 3 0.01079598+0.00065866i
$loglik
[1] -107.9374
$AIC
[1] 227.8749
$BIC
[1] 241.8593
$gradnormerror
[1] 2.466083e-08
> #plot the estimated density
> nntsplot(est$cestimates[,2],3)
> #add the histogram to the estimated density plot
> plot(Turtles_hist, freq=FALSE, add=TRUE)
>
>
>
>
>
> dev.off()
null device
1
>