Description Usage Arguments Value
View source: R/General_functions.R
This function calculates the normalized backward probability of the HMM states. For this the function needs the weights of the forward probability, which have to be inputed as parameter weight. In the general literatur also revered to as beta matrix.
1 | beta_function(m, N, Gamma, p, set, weight)
|
m |
number of likelihoods |
N |
length of the supplied dataset |
Gamma |
Gamma matrix |
p |
vector of likelihood probabilities of the dataset |
set |
index vector to align the p vector |
weight |
weights provided by the alpha calculation |
Returns the beta as a matrix with the dimensions m as rows and the datapoints t as columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.