location parameter
scale parameter
entropy
var y = entropy( 0.0, 1.0 );
// returns 2.0
var y = entropy( 5.0, 2.0 );
// returns ~2.693
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 logistic distribution with location
mu
and scales
.Notes
s <= 0
, the function returnsNaN
.