39 lines
676 B
Plaintext
39 lines
676 B
Plaintext
|
|
{{alias}}( μ, b )
|
|
Returns the mode of a Laplace distribution with location parameter `μ` and
|
|
scale parameter `b`.
|
|
|
|
If provided `NaN` as any argument, the function returns `NaN`.
|
|
|
|
If provided `b <= 0`, the function returns `NaN`.
|
|
|
|
Parameters
|
|
----------
|
|
μ: number
|
|
Location parameter.
|
|
|
|
b: number
|
|
Scale parameter.
|
|
|
|
Returns
|
|
-------
|
|
out: number
|
|
Mode.
|
|
|
|
Examples
|
|
--------
|
|
> var y = {{alias}}( 0.0, 1.0 )
|
|
0.0
|
|
> y = {{alias}}( 4.0, 2.0 )
|
|
4.0
|
|
> y = {{alias}}( NaN, 1.0 )
|
|
NaN
|
|
> y = {{alias}}( 0.0, NaN )
|
|
NaN
|
|
> y = {{alias}}( 0.0, 0.0 )
|
|
NaN
|
|
|
|
See Also
|
|
--------
|
|
|