entropy {integr} | R Documentation |
Calculates Shannon's entropy
Description
Formula: , where
is the
probability of the corresponding
-th class
Usage
entropy(df, classAtt)
Arguments
df |
A discrete |
classAtt |
A class column of the df ( |
Value
The Shannon's entropy of the df
, based on the classAtt
attribute
Examples
entropy(golf, "Play")
[Package integr version 1.0.0 Index]