UNPKG

@stdlib/stats

Version:

Standard library statistical functions.

29 lines (20 loc) 475 B
{{alias}}( λ ) Returns the variance 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 Variance. Examples -------- > var v = {{alias}}( 9.0 ) ~0.012 > v = {{alias}}( 1.0 ) 1.0 See Also --------