Description Usage Arguments Details Value Examples
computeH
computes matrix, sumH, where sumH[k,j] = Sum over t (1->T-1) H_k,j(t)
1 |
alpha |
a matrix, alpha, from Forward Algorithm |
beta |
a matrix, beta, from Backward Algorithm |
X |
a vector of observed states |
trans |
a matrix of transition probability |
u |
a vector of means of Normal distribution for each state (emission probability) |
sig |
a vector of standard deviations of Normal distribution for each state (emission probability) |
H_k,j(t) = P(Z[t]=k , Z[t+1]=j | whole X = x). We omitted the normalising constant 1/P(whole X = x)).
A matrix, sumH, where sumH[k,j] = Sum over t (1->T-1) P(Z[t]=k , Z[t+1]=j | whole X = x)
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.