UNPKG

@stdlib/stats

Version:

Standard library statistical functions.

29 lines (20 loc) 492 B
{{alias}}( λ ) Returns the differential entropy of an exponential distribution. If provided `NaN` as any argument, the function returns `NaN`. If provided a negative value for `λ`, the function returns `NaN`. Parameters ---------- λ: number Rate parameter. Returns ------- out: number Entropy. Examples -------- > var v = {{alias}}( 11.0 ) ~-1.398 > v = {{alias}}( 4.5 ) ~-0.504 See Also --------