R/01_simple.r

Defines functions simple.init

Documented in simple.init

### This function utilize init.EM to obtain an initial.

simple.init <- function(x, nclass = 1){
  .emc <- .EMControl(short.iter = 1, em.iter = 0)
  tmp <- rand.EM(x, nclass, EMC = .emc, stable.solution = FALSE,
                 min.n.iter = 1)
  ret <- list(pi = tmp$pi, Mu = tmp$Mu, LTSigma = tmp$LTSigma)
  class(ret) <- "emret"
  ret
}

Try the EMCluster package in your browser

Any scripts or data that you put into this service are public.

EMCluster documentation built on Sept. 8, 2023, 5:55 p.m.