riso.apps
Class ComputeDeltaH

java.lang.Object
riso.apps.ComputeDeltaH
- public class ComputeDeltaH
- extends java.lang.Object
An instance of this class is a helper to compute the difference in entropy
from first argument of the constructor (some distribution) to the second
(some other distribution). Typically the first distribution is a prior
distribution and the second is the posterior over the same variable as
the prior; the entropy of the first is generally greater than the
second, and so the value returned by do_compute_delta_h is
generally positive.
|
Method Summary |
double |
do_compute_delta_h()
Returns the entropy of the first distribution minus the entropy
of the second distribution. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ei1h
riso.numerical.IntegralHelper1d ei1h
ei2h
riso.numerical.IntegralHelper1d ei2h
ComputeDeltaH
public ComputeDeltaH(riso.distributions.Distribution p1,
riso.distributions.Distribution p2)
do_compute_delta_h
public double do_compute_delta_h()
throws java.lang.Exception
- Returns the entropy of the first distribution minus the entropy
of the second distribution.