location parameter
scale parameter
mode
var y = mode( 0.0, 1.0 );
// returns ~0.368
var y = mode( 5.0, 2.0 );
// returns ~2.718
var y = mode( NaN, 1.0 );
// returns NaN
var y = mode( 0.0, NaN );
// returns NaN
var y = mode( 0.0, 0.0 );
// returns NaN
Returns the mode for a lognormal distribution with location
mu
and scalesigma
.Notes
sigma <= 0
, the function returnsNaN
.