org.omegahat.Simulation.MCMC.Listeners
Class CovarianceListener

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

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


Field Summary
protected  org.omegahat.Simulation.MCMC.Listeners.MultiDoubleState$CovAccumulator cumData
           
 
Constructor Summary
CovarianceListener()
           
 
Method Summary
 double[][] getCovariance()
           
 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

cumData

protected org.omegahat.Simulation.MCMC.Listeners.MultiDoubleState$CovAccumulator cumData
Constructor Detail

CovarianceListener

public CovarianceListener()
Method Detail

getCovariance

public double[][] getCovariance()

reset

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

notify

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