repl.txt (1626B)
1 2 {{alias}}( x, a, b ) 3 Evaluates the logarithm of the cumulative distribution function (CDF) for an 4 arcsine distribution with minimum support `a` and maximum support `b` at a 5 value `x`. 6 7 If provided `NaN` as any argument, the function returns `NaN`. 8 9 If provided `a >= b`, the function returns `NaN`. 10 11 Parameters 12 ---------- 13 x: number 14 Input value. 15 16 a: number 17 Minimum support. 18 19 b: number 20 Maximum support. 21 22 Returns 23 ------- 24 out: number 25 Evaluated logCDF. 26 27 Examples 28 -------- 29 > var y = {{alias}}( 9.0, 0.0, 10.0 ) 30 ~-0.229 31 > y = {{alias}}( 0.5, 0.0, 2.0 ) 32 ~-1.1 33 > y = {{alias}}( {{alias:@stdlib/constants/float64/pinf}}, 2.0, 4.0 ) 34 0.0 35 > y = {{alias}}( {{alias:@stdlib/constants/float64/ninf}}, 2.0, 4.0 ) 36 -Infinity 37 > y = {{alias}}( NaN, 0.0, 1.0 ) 38 NaN 39 > y = {{alias}}( 0.0, NaN, 1.0 ) 40 NaN 41 > y = {{alias}}( 0.0, 0.0, NaN ) 42 NaN 43 > y = {{alias}}( 2.0, 1.0, 0.0 ) 44 NaN 45 46 47 {{alias}}.factory( a, b ) 48 Returns a function for evaluating the logarithm of the cumulative 49 distribution function (CDF) of an arcsine distribution with minimum support 50 `a` and maximum support `b`. 51 52 Parameters 53 ---------- 54 a: number 55 Minimum support. 56 57 b: number 58 Maximum support. 59 60 Returns 61 ------- 62 logcdf: Function 63 Logarithm of cumulative distribution function (CDF). 64 65 Examples 66 -------- 67 > var mylogcdf = {{alias}}.factory( 0.0, 10.0 ); 68 > var y = mylogcdf( 0.5 ) 69 ~-1.941 70 > y = mylogcdf( 8.0 ) 71 ~-0.35 72 73 See Also 74 -------- 75