repl.txt (1369B)
1 2 {{alias}}( x, sigma ) 3 Evaluates the logarithm of the cumulative distribution function (CDF) for a 4 Rayleigh distribution with scale parameter `sigma` at a value `x`. 5 6 If provided `NaN` as any argument, the function returns `NaN`. 7 8 If provided a negative value for `sigma`, the function returns `NaN`. 9 10 Parameters 11 ---------- 12 x: number 13 Input value. 14 15 sigma: number 16 Scale parameter. 17 18 Returns 19 ------- 20 out: number 21 Evaluated logCDF. 22 23 Examples 24 -------- 25 > var y = {{alias}}( 2.0, 3.0 ) 26 ~-1.613 27 > y = {{alias}}( 1.0, 2.0 ) 28 ~-2.141 29 > y = {{alias}}( -1.0, 4.0 ) 30 -Infinity 31 > y = {{alias}}( NaN, 1.0 ) 32 NaN 33 > y = {{alias}}( 0.0, NaN ) 34 NaN 35 // Negative scale parameter: 36 > y = {{alias}}( 2.0, -1.0 ) 37 NaN 38 39 40 {{alias}}.factory( sigma ) 41 Returns a function for evaluating the logarithm of the cumulative 42 distribution function (CDF) of a Rayleigh distribution with scale parameter 43 `sigma`. 44 45 Parameters 46 ---------- 47 sigma: number 48 Scale parameter. 49 50 Returns 51 ------- 52 logcdf: Function 53 Logarithm of cumulative distribution function (CDF). 54 55 Examples 56 -------- 57 > var mylogcdf = {{alias}}.factory( 0.5 ); 58 > var y = mylogcdf( 1.0 ) 59 ~-0.145 60 > y = mylogcdf( 0.5 ) 61 ~-0.933 62 63 See Also 64 -------- 65