repl.txt (541B)
1 2 {{alias}}( a, b ) 3 Returns the variance of a discrete uniform distribution. 4 5 If `a > b`, the function returns `NaN`. 6 7 If `a` or `b` is not an integer value, the function returns `NaN`. 8 9 Parameters 10 ---------- 11 a: integer 12 Minimum support. 13 14 b: integer 15 Maximum support. 16 17 Returns 18 ------- 19 out: number 20 Variance. 21 22 Examples 23 -------- 24 > var v = {{alias}}( 0, 1 ) 25 ~0.25 26 > v = {{alias}}( 4, 12 ) 27 ~6.667 28 > v = {{alias}}( 2, 8 ) 29 4.0 30 31 See Also 32 -------- 33