EM: EM algorithm

View source: R/stat.R

EMR Documentation

EM algorithm

Description

EM algorithm with identity covariance matrix for all groups

Usage

EM(X, num_clusters, tol = 1e-10)

Arguments

X

data matrix of dimension n x p

num_clusters

number of clusters

tol

tolerance for convergence

Value

a list: mu_hat - the estimated cluster centroids and soft_label - the estimated cluster membership


wangtengyao/putils documentation built on Nov. 26, 2024, 2:01 a.m.