partitionEntropy | R Documentation |
Calculate the Entropy of a Set Partition
partitionEntropy(partition)
partition |
A numeric vector representing a partition of the integers 1, ..., n using cluster labels |
Calculated partition entropy as a numeric vector of length one
p <- c(0,0,0,1,1,2) # n = 6, 3 unique clusters partitionEntropy(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.