entropy: Entropy

View source: R/entropy.R

entropyR Documentation

Entropy

Description

Description of the entropy function.

Usage

entropy(a, b)

Arguments

a

a vector of classifications; this must be a vector of characters, integers, numerics, or a factor, but not a list.

b

a vector of classifications

Details

A function to compute the empirical entropy for two vectors of classifications and the joint entropy

Value

a list of four objects:

  • uv the joint entropy

  • u the conditional entropy of partition a

  • v the conditional entropy of partition b

  • sort_pairs the output from the sort_pairs function

See Also

sort_pairs


CommKern documentation built on Sept. 23, 2022, 5:07 p.m.