1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
{{alias}}( x, v )
Evaluates the natural logarithm of the cumulative distribution function
(CDF) for a Student's t distribution with degrees of freedom `v` at a value
`x`.
If provided `NaN` as any argument, the function returns `NaN`.
If provided a non-positive value for `v`, the function returns `NaN`.
Parameters
----------
x: number
Input value.
v: number
Degrees of freedom.
Returns
-------
out: number
Evaluated logCDF.
Examples
--------
> var y = {{alias}}( 2.0, 0.1 )
~-0.493
> y = {{alias}}( 1.0, 2.0 )
~-0.237
> y = {{alias}}( -1.0, 4.0 )
~-1.677
> y = {{alias}}( NaN, 1.0 )
NaN
> y = {{alias}}( 0.0, NaN )
NaN
> y = {{alias}}( 2.0, -1.0 )
NaN
{{alias}}.factory( v )
Returns a function for evaluating the natural logarithm of the cumulative
distribution function (CDF) of a Student's t distribution with degrees of
freedom `v`.
Parameters
----------
v: number
Degrees of freedom.
Returns
-------
logcdf: Function
Logarithm of cumulative distribution function (CDF).
Examples
--------
> var mylogcdf = {{alias}}.factory( 0.5 );
> var y = mylogcdf( 3.0 )
~-0.203
> y = mylogcdf( 1.0 )
~-0.358
See Also
--------
|