partitionEntropy {sams} | R Documentation |
Calculate the Entropy of a Set Partition
Description
Calculate the Entropy of a Set Partition
Usage
partitionEntropy(partition)
Arguments
partition |
A numeric vector representing a partition of the integers
|
Value
Calculated partition entropy as a numeric vector of length one
Examples
p <- c(0,0,0,1,1,2) # n = 6, 3 unique clusters
partitionEntropy(p)
[Package sams version 0.4.3 Index]