getBestInit: Select the Best Initialization Method for a Gaussian Mixture Model (GMM)
Description
Runs multiple GMM initialization strategies, computes the log-likelihood for each
initial parameter set, and selects the best initialization method based on the
highest log-likelihood value.
# Simulated dataset.seed(123)
x <- matrix(rnorm(200), ncol = 2)
# Run selection of best initialization result <- getBestInit(x, k = 2)
result$best_method
result$loglik_table