Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

riso.apps
Class ComputeDeltaH  view ComputeDeltaH download ComputeDeltaH.java

java.lang.Object
  extended byriso.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.


Nested Class Summary
(package private)  class ComputeDeltaH.EntropyIntegrand
           
 
Field Summary
(package private)  riso.numerical.IntegralHelper1d ei1h
           
(package private)  riso.numerical.IntegralHelper1d ei2h
           
 
Constructor Summary
ComputeDeltaH(riso.distributions.Distribution p1, riso.distributions.Distribution p2)
           
 
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
 

Field Detail

ei1h

riso.numerical.IntegralHelper1d ei1h

ei2h

riso.numerical.IntegralHelper1d ei2h
Constructor Detail

ComputeDeltaH

public ComputeDeltaH(riso.distributions.Distribution p1,
                     riso.distributions.Distribution p2)
Method Detail

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.