mean
standard deviation
entropy
var y = entropy( 0.0, 1.0 );
// returns ~1.419
var y = entropy( 5.0, 3.0 );
// returns ~2.518
var y = entropy( NaN, 1.0 );
// returns NaN
var y = entropy( 0.0, NaN );
// returns NaN
var y = entropy( 0.0, 0.0 );
// returns NaN
Returns the differential entropy for a normal distribution with mean
mu
and standard deviationsigma
.Notes
sigma <= 0
, the function returnsNaN
.