org.omegahat.Simulation.MCMC.Listeners
Class ArrayListener
java.lang.Object
|
+--org.omegahat.Simulation.MCMC.Listeners.ListenerPrinter
|
+--org.omegahat.Simulation.MCMC.Listeners.ArrayListener
- All Implemented Interfaces:
- MCMCListener
- Direct Known Subclasses:
- PlottingListener
- public class ArrayListener
- extends ListenerPrinter
Stores contents of RecordingIndexEvents in an array
when one is recieved.
Field Summary |
protected double[][] |
data
|
protected boolean |
debug
|
protected int |
index
|
(package private) double[] |
time
|
(package private) java.lang.String[] |
varNames
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
index
protected int index
debug
protected boolean debug
varNames
java.lang.String[] varNames
data
protected double[][] data
time
double[] time
ArrayListener
public ArrayListener(java.lang.String[] varNames)
ArrayListener
public ArrayListener(java.lang.String[] varNames,
int size)
data
public double[][] data()
data
public double[] data(int which)
varNames
public java.lang.String[] varNames()
time
public double[] time()
debug
public boolean debug()
debug
public boolean debug(boolean debug)
notify
public void notify(MCMCEvent e)
- Description copied from interface:
MCMCListener
- Function to be called for notification
- Overrides:
notify
in class ListenerPrinter