partitionEntropy: Calculate the Entropy of a Set Partition

View source: R/summary.R

partitionEntropyR 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 1, ..., n using cluster labels

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)

sams documentation built on April 20, 2022, 1:06 a.m.

Related to partitionEntropy in sams...