Description Usage Arguments Value
Calculates the Shannon entropy for a cluster assignment vector. A value of 0 means that all elements are in one cluster, higher values indicate a more even distribution of objects in the clusters. The value can be normalized to [0,1] such that 1 means the same number of objects in each cluster.
1 | clusterEntropy_fast(assignments, normalize = FALSE)
|
assignments |
Integer vector of cluster assignments containing only values from 1 to k with k = number of clusters (code depends on this!). |
normalize |
Should the entropy be normalized to [0,1]? |
The entropy as double.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.