Description Usage Arguments Value References Examples
This function is based on an EM algorithm (the Baum-Welch algorithm) and computes the parameters of a HMM for functional data, returning an object of S3
class fhmm
.
1 | fitBM_fhmm(hmm)
|
hmm |
a hmm object obtained from setfHMM |
The function returns all the parameters of a HMM, computed via Baum-Welch algorithm: the vector of initial probabilities, the transition matrix, the parameters of the distributions related to the states and the value of the log-likelihood.
Martino A., Guatteri, G. and Paganoni A. M., Hidden Markov Models for multivariate functional data, MOX Report 21/2019, 2019
1 2 3 4 5 6 7 8 | data( simulatedFD )
FD <- simulatedFD
n <- 20
n_tot <- dim( FD$data[[1]] )[1]
bt <- seq( 1, n_tot, by = n )
hmm <- set_fhmm( FD, nStates = 4, bT = bt )
bw <- fitBM_fhmm(hmm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.