Calculates the score for each combination of cluster assignments
and center values. This function runs inside sparse_mdc
.
score_calc(pdat, clusters, mu, lambda1, lambda2, nclust, delta, dim)
list with D entries, each entry contains data d, p * n matrix. This data should be centered and log-transformed.
List containig cluster assignments for each dimension as entries.
list with D entries, each entry contains centers for data d, p*k matrix.
Penalty parameter for mean size.
Penalty parameter for mean difference.
Number of clusters in the data.
Small term to ensure existance of solution, default is 0.0000001.
Total number of conditions, D.
The caluculated score.