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. For continuous distributions, this is the differential entropy, which can be negative.

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

Return

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