H {greed} | R Documentation |
Compute the entropy of a discrete sample
Description
Compute the entropy of a discrete sample
Usage
H(cl)
Arguments
cl |
vector of discrete labels |
Value
the entropy of the sample
Examples
cl <- sample(2, 500, replace = TRUE)
H(cl)
[Package greed version 0.6.1 Index]