shape parameter
rate parameter
entropy
var v = entropy( 1.0, 1.0 );
// returns 1.0
var v = entropy( 4.0, 12.0 );
// returns ~-0.462
var v = entropy( 8.0, 2.0 );
// returns ~1.723
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 gamma distribution.
Notes
alpha <= 0
orbeta <= 0
, the function returnsNaN
.