clusterEntropy {coseq} | R Documentation |
Provides the calculation of per-cluster entropy, equivalent to
Entropy(k) = ∑_{i \in C_k} \log (τ_{ik})
where τ_{ik} is the conditional probability of gene i belonging to cluster k and C_k corresponds to the set of indices of genes attributed to cluster k.
clusterEntropy(probaPost)
probaPost |
Matrix containing the conditional probabilities of belonging to each cluster for all observations |
Entropy per cluster
Cathy Maugis-Rabusseau
## Generate artificial matrix of conditional probabilities for K=5 clusters tmp <- matrix(runif(100*5), nrow=100, ncol=5) probaPost <- tmp / rowSums(tmp) clusterEntropy(probaPost)