entropy {CommKern} | R Documentation |
Description of the entropy function.
entropy(a, b)
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 |
A function to compute the empirical entropy for two vectors of classifications and the joint entropy
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