create_sequence: Create sequence from HMM

Description Usage Arguments Value

View source: R/bw.R

Description

Create a sequence from a simulated HMM given transition and emission matrices

Usage

1
create_sequence(transition.mat, emission.mat, n, start.prob)

Arguments

transition.mat

Transition Matrix specifying the probability of changing or remaining in the same state

emission.mat

Emission matrix specifying probability of emitting certain symbol from a state

n

The length of the sequence to be generated

start.prob

Vector of initial probabilities, probaility of starting from a state

Value

list containing generated sequence and the vector of states under which each symbol was generated


arr15334/BaumWelch documentation built on Jan. 23, 2022, 1:30 a.m.