entropy

open override val entropy: Double(source)

Returns the Shannon entropy of this distribution in nats (natural logarithm units).

Entropy measures the uncertainty or "spread" of a distribution. Higher entropy means more uncertainty.

Returns Double.NaN by default. Implementations override this with the exact formula for each distribution.

Return

the entropy in nats, or Double.NaN if not yet implemented.