Description Usage Arguments Value
View source: R/ml_predictions.R
Calculates Shannon-Weiner entropy
1 | shannon_weiner(l, .prob_bool = FALSE, units = exp(1))
|
l |
a list of values numeric or factor |
.prob_bool |
if TRUE, l is understood as a list of probabilities, if FALSE l is understood as a factor |
units |
units of the logarithm in the calculation of entropy |
Shannon-Weiner entropy
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.