minimum support
maximum support
entropy
var v = entropy( 0, 1 );
// returns ~0.693
var v = entropy( 4, 12 );
// returns ~2.197
var v = entropy( -4, 4 );
// returns ~2.197
var v = entropy( 1, 2.5 );
// returns NaN
var v = entropy( -0.1, 1 );
// returns NaN
var v = entropy( 2, NaN );
// returns NaN
var v = entropy( NaN, 2 );
// returns NaN
Returns the entropy of a discrete uniform distribution.
Notes
a
orb
is not an integer value, the function returnsNaN
.a >= b
, the function returnsNaN
.