partitionEntropy: Calculate the Entropy of a Set Partition

Description Usage Arguments Value Examples

View source: R/summary.R

Description

Calculate the Entropy of a Set Partition

Usage

1
partitionEntropy(partition)

Arguments

partition

A numeric vector representing a partition of the integers 1, ..., n using cluster labels

Value

Calculated partition entropy as a numeric vector of length one

Examples

1
2
p <- c(0,0,0,1,1,2) # n = 6, 3 unique clusters
partitionEntropy(p)

sams documentation built on June 16, 2021, 1:06 a.m.

Related to partitionEntropy in sams...