repl.txt (1145B)
1 2 {{alias}}( x, μ ) 3 Evaluates the natural logarithm of the probability density function (logPDF) 4 for a degenerate distribution with mean `μ`. 5 6 If provided `NaN` for any argument, the function returns `NaN`. 7 8 Parameters 9 ---------- 10 x: number 11 Input value. 12 13 μ: number 14 Constant value of distribution. 15 16 Returns 17 ------- 18 out: number 19 Natural logarithm of the PDF. 20 21 Examples 22 -------- 23 > var y = {{alias}}( 2.0, 3.0 ) 24 -Infinity 25 > y = {{alias}}( 3.0, 3.0 ) 26 Infinity 27 > y = {{alias}}( NaN, 0.0 ) 28 NaN 29 > y = {{alias}}( 0.0, NaN ) 30 NaN 31 32 33 {{alias}}.factory( μ ) 34 Returns a function for evaluating the natural logarithm of the probability 35 density function (logPDF) of a degenerate distribution with mean `μ`. 36 37 Parameters 38 ---------- 39 μ: number 40 Constant value of distribution. 41 42 Returns 43 ------- 44 logpdf: Function 45 Function to evaluate the natural logarithm of the PDF. 46 47 Examples 48 -------- 49 > var mylogPDF = {{alias}}.factory( 10.0 ); 50 > var y = mylogPDF( 10.0 ) 51 Infinity 52 53 See Also 54 -------- 55