Wrapper to go between the expectation and maximization steps until the maximum iterations or the convergence of log likelihood

expect_max(pca.components, clusters, parameter.estimates, max.iterations,
  delta.log.li, temp, num.cores, verbose)

Arguments

pca.components

Expects a matrix with n rows as the cells and m columns as the principal components.

clusters

Expect the most likely cluster assignments

parameter.estimates

Expects a list of parameters (mu, covariance, and weights) from initialize_gmm or maximization_step

max.iterations

The maximum number of iterations of the EM

delta.log.li

Change in the log likelihood to satisfy convergence

temp

Current temperature of the algorithm

verbose

Whether to include verbose output