time-to-botec/js/node_modules/@stdlib/stats/base/dists/lognormal/cdf/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

77 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{alias}}( x, μ, σ )
Evaluates the cumulative distribution function (CDF) for a lognormal
distribution with location parameter `μ` and scale parameter `σ` at a value
`x`.
If provided `NaN` as any argument, the function returns `NaN`.
If provided `σ <= 0`, the function returns `NaN`.
Parameters
----------
x: number
Input value.
μ: number
Location parameter.
σ: number
Scale parameter.
Returns
-------
out: number
Evaluated CDF.
Examples
--------
> var y = {{alias}}( 2.0, 0.0, 1.0 )
~0.756
> y = {{alias}}( 5.0, 10.0, 3.0 )
~0.003
> y = {{alias}}( 2.0, 0.0, NaN )
NaN
> y = {{alias}}( 2.0, NaN, 1.0 )
NaN
> y = {{alias}}( NaN, 0.0, 1.0 )
NaN
// Non-positive scale parameter `σ`:
> y = {{alias}}( 2.0, 0.0, -1.0 )
NaN
> y = {{alias}}( 2.0, 0.0, 0.0 )
NaN
{{alias}}.factory( μ, σ )
Returns a function for evaluating the cumulative distribution function (CDF)
of a lognormal distribution with location parameter `μ` and scale parameter
`σ`.
Parameters
----------
μ: number
Location parameter.
σ: number
Scale parameter.
Returns
-------
cdf: Function
Cumulative distribution function (CDF).
Examples
--------
> var myCDF = {{alias}}.factory( 3.0, 1.5 );
> var y = myCDF( 1.0 )
~0.023
> y = myCDF( 4.0 )
~0.141
See Also
--------