first shape parameter
second shape parameter
differential entropy
var v = entropy( 1.0, 1.0 );
// returns 0.0
var v = entropy( 4.0, 12.0 );
// returns ~-0.869
var v = entropy( 8.0, 2.0 );
// returns ~-0.795
var v = entropy( 1.0, -0.1 );
// returns NaN
var v = entropy( -0.1, 1.0 );
// returns NaN
var v = entropy( 2.0, NaN );
// returns NaN
var v = entropy( NaN, 2.0 );
// returns NaN
Returns the differential entropy of a beta distribution.
Notes
alpha <= 0
orbeta <= 0
, the function returnsNaN
.