entropy {o2ools} | R Documentation |
Compute entropy of a categorical variable
Description
Computes the entropy of a categorical variable, with optional normalisation.
Usage
entropy(x, normalise = TRUE)
Arguments
x |
A character vector representing observed categorical values. |
normalise |
Logical. If |
Value
A numeric value representing the entropy of x
.
[Package o2ools version 0.0.1 Index]