repl.txt (549B)
1 2 {{alias}}( a, b ) 3 Returns the expected value 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 Expected value. 21 22 Examples 23 -------- 24 > var v = {{alias}}( -2, 2 ) 25 0.0 26 > v = {{alias}}( 4, 12 ) 27 8.0 28 > v = {{alias}}( 2, 8 ) 29 5.0 30 31 See Also 32 -------- 33