atp.MVCN | R Documentation |
Detects atypical matrices via matrix-variate contaminated normal Hidden Markov Models.
atp.MVCN(Y, pgood, class)
Y |
An array with dimensions |
pgood |
An array with dimensions |
class |
An |
An num
x t
matrix containing, for each observation and time, a 0 if it that matrix is typical and 1 otherwise.
data("simData2")
Y <- simData2$Y
init <- Eigen.HMM_init(Y = Y, k = 2, density = "MVCN", mod.row = "EEE", mod.col = "EE", nstartR = 1)
fit <- Eigen.HMM_fit(Y = Y, init.par = init, nThreads = 1)
atp <- atp.MVCN(Y = Y,
pgood = fit[["results"]][[1]][[1]][[1]][["pgood"]],
class = fit[["results"]][[1]][[1]][[1]][["class"]])
which(atp==1)
which(simData2[["atp.tr"]]==1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.