get_A_old: Simple matrix multiplication

View source: R/RcppExports.R

get_A_oldR Documentation

Simple matrix multiplication

Description

Simple matrix multiplication

Usage

get_A_old(m, alpha, beta, A, f0x, f1x, i)

Arguments

m

the number of positions (hypothesis)

alpha

a matrix m * 2 containing the forward variables

beta

a matrix m * 2 containing the backward variables

A

a matrix 2 * 2 the transition probabilities

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

i

the position (hypothesis) for wich we want the posterior transition matrix.

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.