clustering_err: Clustering error rate

Description Usage Arguments Value Examples

View source: R/clustering_err.R

Description

Calculate clustering error rate by using estimations

Usage

1
clustering_err(K, da, em_res, pi0, mu, Sigma, idx)

Arguments

da

Data for clustering

K

Selected number of clusters

em_res

Results list returned by an EM algorithm

pi0

True mixing weights, if known

mu

True clusters centers, if known

Sigma

True clusters covariance, if known

idx

True clusters labels, if known

Value

cluster_err

clustering error rate

mean_err

estimation error of clusters centers

wt_err

estimation error of clusters mixing weights

cov_err

estimation error of clusters covariance

Examples

1
2
3
res_clemm = clemm_em(dat, K, u, iter=800, opts=opts, init=init)

clemm_err = clustering_err(K, dat, em_res=res_clemm, pi0=pi0, mu=da$mu, Sigma=da$Sigma, idx=idx)

kusakehan/CLEMM documentation built on May 24, 2019, 2:46 p.m.