Skip to contents

This function calculates the entropy of a probability distribution.

Usage

calculate_entropy(probs)

Arguments

probs

A numeric vector representing the probability distribution.

Value

The calculated entropy value.

Examples

if (FALSE) { # \dontrun{
entropy_result <- calculate_entropy(probs)
} # }