Skip to main content

shannon_entropy_bits_kernel

Function shannon_entropy_bits_kernel 

Source
pub fn shannon_entropy_bits_kernel<R>(
    probs: &CausalTensor<R>,
) -> Result<R, PhysicsError>
Expand description

Shannon entropy in bits, without renormalizing the probabilities. Rejects empty input, negative probabilities and non-finite entries.