mean
standard deviation
mode
var y = mode( 0.0, 1.0 );
// returns 0.0
var y = mode( 5.0, 2.0 );
// returns 5.0
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 normal distribution with mean
mu
and standard deviationsigma
.Notes
sigma <= 0
, the function returnsNaN
.