Returns the differential entropy of a chi-squared distribution (in nats).
k <= 0
NaN
degrees of freedom
entropy
var v = entropy( 9.0 ); // returns ~2.786
var v = entropy( 1.0 ); // returns ~0.784
var v = entropy( -0.2 ); // returns NaN
var v = entropy( NaN ); // returns NaN
Returns the differential entropy of a chi-squared distribution (in nats).
Notes
k <= 0
, the function returnsNaN
.