org.omegahat.Simulation.MCMC.Listeners
Class DistanceListener

java.lang.Object
  |
  +--org.omegahat.Simulation.MCMC.Listeners.DistanceListener
All Implemented Interfaces:
MCMCListener, ResettableListener
Direct Known Subclasses:
DistanceWriter

public class DistanceListener
extends java.lang.Object
implements MCMCListener, ResettableListener


Field Summary
protected  double cumExpectedAcceptance
           
protected  double cumExpectedDistance
           
protected  double cumsumAccepted
           
protected  double cumsumAll
           
protected  int niterAccepted
           
protected  int niterAll
           
protected  int numChain
           
 
Constructor Summary
DistanceListener()
           
 
Method Summary
 double acceptance()
           
 double averageDistance()
           
 double conditionalDistance()
           
 double expectedAcceptance()
           
 double expectedDistance()
           
 void notify(MCMCEvent e)
          Function to be called for notification
 void reset()
          Reset any stored state to the initial condition
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

cumExpectedAcceptance

protected double cumExpectedAcceptance

cumExpectedDistance

protected double cumExpectedDistance

cumsumAll

protected double cumsumAll

niterAll

protected int niterAll

cumsumAccepted

protected double cumsumAccepted

niterAccepted

protected int niterAccepted

numChain

protected int numChain
Constructor Detail

DistanceListener

public DistanceListener()
Method Detail

expectedDistance

public double expectedDistance()

expectedAcceptance

public double expectedAcceptance()

averageDistance

public double averageDistance()

conditionalDistance

public double conditionalDistance()

acceptance

public double acceptance()

notify

public void notify(MCMCEvent e)
Description copied from interface: MCMCListener
Function to be called for notification
Specified by:
notify in interface MCMCListener

reset

public void reset()
Description copied from interface: ResettableListener
Reset any stored state to the initial condition
Specified by:
reset in interface ResettableListener