repl.txt (1211B)
1 2 {{alias}}( x, v ) 3 Evaluates the probability density function (PDF) for a Student's t 4 distribution with degrees of freedom `v` at a value `x`. 5 6 If provided `NaN` as any argument, the function returns `NaN`. 7 8 If provided a non-positive value for `v`, the function returns `NaN`. 9 10 Parameters 11 ---------- 12 x: number 13 Input value. 14 15 v: number 16 Degrees of freedom. 17 18 Returns 19 ------- 20 out: number 21 Evaluated PDF. 22 23 Examples 24 -------- 25 > var y = {{alias}}( 0.3, 4.0 ) 26 ~0.355 27 > y = {{alias}}( 2.0, 0.7 ) 28 ~0.058 29 > y = {{alias}}( -1.0, 0.5 ) 30 ~0.118 31 > y = {{alias}}( 0.0, NaN ) 32 NaN 33 > y = {{alias}}( NaN, 2.0 ) 34 NaN 35 > y = {{alias}}( 2.0, -1.0 ) 36 NaN 37 38 39 {{alias}}.factory( v ) 40 Returns a function for evaluating the probability density function (PDF) 41 of a Student's t distribution with degrees of freedom `v`. 42 43 Parameters 44 ---------- 45 v: number 46 Degrees of freedom. 47 48 Returns 49 ------- 50 pdf: Function 51 Probability density function (PDF). 52 53 Examples 54 -------- 55 > var myPDF = {{alias}}.factory( 3.0 ); 56 > var y = myPDF( 1.0 ) 57 ~0.207 58 59 See Also 60 -------- 61