powered by
Calculate the Entropy of a Set Partition
partitionEntropy(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
# NOT RUN { p <- c(0,0,0,1,1,2) # n = 6, 3 unique clusters partitionEntropy(p) # }
Run the code above in your browser using DataLab