Evaluates the cumulative distribution function (CDF) for a lognormal distribution with location parameter mu
and scale parameter sigma
at a value x
.
sigma <= 0
, the function returns NaN
.input value
location parameter
scale parameter
evaluated CDF
var y = cdf( 2.0, 0.0, 1.0 );
// returns ~0.756
var y = cdf( 5.0, 10.0, 3.0 );
// returns ~0.003
var y = cdf( 2.0, 0.0, NaN );
// returns NaN
var y = cdf( 2.0, NaN, 1.0 );
// returns NaN
var y = cdf( NaN, 0.0, 1.0 );
// returns NaN
Returns a function for evaluating the cumulative distribution function (CDF) for a lognormal distribution with location parameter mu
and scale parameter sigma
.
location parameter
scale parameter
CDF
var mycdf = cdf.factory( 3.0, 1.5 );
var y = mycdf( 1.0 );
// returns ~0.023
y = mycdf( 4.0 );
// returns ~0.141
Interface for the cumulative distribution function (CDF) of a lognormal distribution.