@stdlib/stats
Version:
Standard library statistical functions.
29 lines (20 loc) • 448 B
Plain Text
{{alias}}( k )
Returns the mode of a chi-squared distribution.
If provided `NaN` as any argument, the function returns `NaN`.
If provided `k < 0`, the function returns `NaN`.
Parameters
----------
k: number
Degrees of freedom.
Returns
-------
out: number
Mode.
Examples
--------
> var v = {{alias}}( 11.0 )
9.0
> v = {{alias}}( 1.5 )
0.0
See Also
--------