R/EntropyMatrix_utils.R
calculate_entropy.Rd
Calculate entropy from a probability vector
calculate_entropy(p)
A numeric vector of probabilities.
The calculated entropy value.