label_switch: Label switching

Description Usage Arguments Value

View source: R/label_switching.R

Description

Label switching

Usage

1
  label_switch(RT, s, n, lambda, P)

Arguments

RT

counts for each simulated sequnce

s

current segmentation sequence

n

length of sequence

lambda

transition matrix for hidden sequence

P

array of transition matrices for observed sequence

Value

RT

counts

s

segmentation after label switching corrected for

P

tranition matrix P after label switching corrected for

lambda

trabsition matric lambda after label switching corrected for


csgillespie/HMMs documentation built on May 12, 2017, 12:25 p.m.