shannon_weiner: Calculates Shannon-Weiner entropy

Description Usage Arguments Value

View source: R/ml_predictions.R

Description

Calculates Shannon-Weiner entropy

Usage

1
shannon_weiner(l, .prob_bool = FALSE, units = exp(1))

Arguments

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

Value

Shannon-Weiner entropy


hrvg/RiverML documentation built on Oct. 12, 2020, 10:40 a.m.