get_L1: Simple matrix multiplication

View source: R/RcppExports.R

get_L1R Documentation

Simple matrix multiplication

Description

Simple matrix multiplication

Usage

get_L1(A, m, alpha, beta, f0x, f1x)

Arguments

A

a matrix 2 * 2 the transition probabilities

m

the number of positions (hypothesis)

alpha

a matrix m * 2 containing the forward variables

beta

a matrix m * 2 containing the backward variables

f0x

a vector of the values of the density under the null hypothesis on the observations

f1x

a vector of the values of the density under the alternative hypothesis on the observations

Value

Product of matrices

Examples

A <- matrix(1:9, 3, 3)
B <- matrix(11:19, 3, 3)
matrix_mult_cpp(A, B)

Marie-PerrotDockes/sanssouci.hmm documentation built on Oct. 26, 2023, 10:36 a.m.