Skip to contents

Calculate entropy from a probability vector

Usage

calculate_entropy(p)

Arguments

p

A numeric vector of probabilities.

Value

The calculated entropy value.