Skip to contents

Shannon entropy for probabilities

Usage

entropy_p(v)

Arguments

v

A vector of probabilities where each value is treated as the probability of success or P(1)

Value

The Shannon entropy of each probability

See also