nntsloglik {CircNNTSR}R Documentation

NNTS log-likelihood function

Description

Computes the log-likelihood function with NNTS density for data

Usage

nntsloglik(cpars = c(0, 0), M = 0, data)

Arguments

cpars vector of real numbers of dimension 2*M. The first M numbers are the SQUARED moduli of the c parameters, the sum must be less than 1/(2*pi). The last M numbers are the arguments of the c parameters
M number of components in the NNTS
data vector with observed angles in radians.

Value

The function gives the value of the log-likelihood function for the data

Note

The default values give the Uniform circular log-likelihood for data

Author(s)

Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez

References

Fernandez-Duran, J.J. (2004). Circular Distributions Based on Nonnegative Trigonometric Sums, Biometrics, 60(2), 499-503.

Examples


nntsloglik(c(.01,.02,1,2),2,t(c(pi,pi/2,2*pi,pi)))

[Package CircNNTSR version 0.1 Index]