Entropy
This is a general entropy function, handling conditional joint entropy.
-
entropy2(dist, rvs=None, crvs=None, rv_names=None)[source]
Compute the conditional joint entropy.
Parameters : |
- dist (Distribution) –
The distribution from which the entropy is calculated.
- rvs (list, None) –
The indexes of the random variable used to calculate the entropy. If
None, then the entropy is calculated over all random variables.
- crvs (list, None) –
The indexes of the random variables to condition on. If None, then no
variables are condition on.
- rv_names (bool) –
If True, then the elements of rvs are treated as random variable
names. If False, then the elements of rvs are treated as random
variable indexes. If None, then the value True is used if the
distribution has specified names for its random variables.
|
Returns: | H (float) –
The entropy.
|