nntsloglikInterval0to1 {CircNNTSR}R Documentation

NNTS log-likelihood function for the incidence data defined in the interval [0,1)

Description

Computes the log-likelihood function for incidence data (number of observed values in certain intervals defined in the interval [0,1))

Usage

nntsloglikInterval0to1(data, cutpoints, cpars = 1/sqrt(2 * pi), M = 0)

Arguments

data

Number of observations in each interval

cutpoints

Vector of size length(data)+1 with the limits of the intervals

cpars

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

Value

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

Author(s)

Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez

Examples

data<-c(1,2,6,4,1)
cutpoints<-c(0,0.2,0.4,0.6,0.8,0.9999999)
cpars<-nntsrandominitial(1)
nntsloglikInterval0to1(data, cutpoints, cpars, 1)

[Package CircNNTSR version 2.3 Index]