repl.txt (2740B)
1 2 {{alias}}( x, a, b, regularized, upper ) 3 Computes the kernel function for the regularized incomplete beta function. 4 5 The `regularized` and `upper` parameters specify whether to evaluate the 6 non-regularized and/or upper incomplete beta functions, respectively. 7 8 If provided `x < 0` or `x > 1`, the function returns `[ NaN, NaN ]`. 9 10 If provided `a < 0` or `b < 0`, the function returns `[ NaN, NaN ]`. 11 12 If provided `NaN` for `x`, `a`, or `b`, the function returns `[ NaN, NaN ]`. 13 14 Parameters 15 ---------- 16 x: number 17 First function parameter. 18 19 a: number 20 Second function parameter. 21 22 b: number 23 Third function parameter. 24 25 regularized: boolean 26 Boolean indicating whether the function should evaluate the regularized 27 or non-regularized incomplete beta function. 28 29 upper: boolean 30 Boolean indicating whether the function should return the upper tail of 31 the incomplete beta function. 32 33 Returns 34 ------- 35 y: Array|TypedArray|Object 36 Function value and first derivative. 37 38 Examples 39 -------- 40 > var out = {{alias}}( 0.8, 1.0, 0.3, false, false ) 41 [ ~1.277, ~0.926 ] 42 > out = {{alias}}( 0.2, 1.0, 2.0, true, false ) 43 [ 0.36, 1.6 ] 44 45 46 {{alias}}.assign( x, a, b, regularized, upper, out, stride, offset ) 47 Computes the kernel function for the regularized incomplete beta function. 48 49 The `regularized` and `upper` parameters specify whether to evaluate the 50 non-regularized and/or upper incomplete beta functions, respectively. 51 52 If provided `x < 0` or `x > 1`, the function returns `[ NaN, NaN ]`. 53 54 If provided `a < 0` or `b < 0`, the function returns `[ NaN, NaN ]`. 55 56 If provided `NaN` for `x`, `a`, or `b`, the function returns `[ NaN, NaN ]`. 57 58 Parameters 59 ---------- 60 x: number 61 First function parameter. 62 63 a: number 64 Second function parameter. 65 66 b: number 67 Third function parameter. 68 69 regularized: boolean 70 Boolean indicating whether the function should evaluate the regularized 71 or non-regularized incomplete beta function. 72 73 upper: boolean 74 Boolean indicating whether the function should return the upper tail of 75 the incomplete beta function. 76 77 out: Array|TypedArray|Object 78 Output array. 79 80 stride: integer 81 Output array stride. 82 83 offset: integer 84 Output array index offset. 85 86 Returns 87 ------- 88 y: Array|TypedArray|Object 89 Function value and first derivative. 90 91 Examples 92 -------- 93 > var out = [ 0.0, 0.0 ]; 94 > var v = {{alias}}.assign( 0.2, 1.0, 2.0, true, true, out, 1, 0 ) 95 [ 0.64, 1.6 ] 96 > var bool = ( v === out ) 97 true 98 99 See Also 100 -------- 101