nll_Rcpp: Negative log-likelihood evaluation

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Evaluation of the negative HMM log-likelihood function based on the forward algorithm, written in C++ (internal function, called by the function npllHSMM).

Usage

1
nll_Rcpp(allprobs,gamma,delta,T_y)

Arguments

allprobs

matrix containing the state-dependent distribution values for each observation (row) and state (column), respectively.

gamma

transition probability matrix.

delta

initial distribution.

T_y

number of observations.

Value

returns the negative log-likelihood value.


JenniferPohle/PHSMM documentation built on Jan. 27, 2021, 7:07 p.m.