entropy

open override val entropy: Double(source)

Returns the Shannon entropy of this binomial distribution in nats.

Computed by summing -pmf(k) * ln(pmf(k)) over all supported values k from 0 to trials. Returns zero when trials is zero (a degenerate distribution with no uncertainty).

Return

the entropy in nats. Always non-negative.