View source: R/mixdiagmvnorm_mstep.R
mixdiagmvnorm_mstep | R Documentation |
The M step function of the EM algorithm for the mixture of multivariate normals with diagonal covariance matrix as the emission distribution using the observation matrix and the estimated weight vectors
mixdiagmvnorm_mstep(x, wt1, wt2)
x |
the observation matrix |
wt1 |
the state probabilities matrix (number of observations times number of states) |
wt2 |
the mixture components probabilities list (of length nstate) of matrices (number of observations times number of mixture components) |
list of emission (mixture multivariate normal) parameters:
(mu
, sigma
and mix.p
), where sigma
is a diagonal matrix
Morteza Amini, morteza.amini@ut.ac.ir
data(CMAPSS)
n = nrow(CMAPSS$train$x)
wt1 <- matrix(runif(3 * n), nrow = n, ncol = 3)
wt2 <- list()
for(j in 1:3) wt2[[j]] <- matrix(runif(5 * n), nrow = n, ncol = 5)
emission <- mixdiagmvnorm_mstep(CMAPSS$train$x, wt1, wt2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.