org.omegahat.Simulation.MCMC.Listeners
Class HistogramWriter
java.lang.Object
|
+--org.omegahat.Simulation.MCMC.Listeners.HistogramWriter
- All Implemented Interfaces:
- MCMCListener, MCMCListenerWriter, ResettableListener
- Direct Known Subclasses:
- QuantileWriter
- public class HistogramWriter
- extends java.lang.Object
- implements MCMCListenerWriter, ResettableListener
Constructor Summary |
protected |
HistogramWriter()
|
|
HistogramWriter(java.lang.String filename,
boolean append,
boolean storeTime,
double min,
double max,
int bins)
|
|
HistogramWriter(java.lang.String filename,
boolean append,
double min,
double max,
int bins)
|
|
HistogramWriter(java.lang.String filename,
double min,
double max,
int bins)
|
Method Summary |
void |
close()
Write out any cached state and then close the output stream. |
void |
flush()
Write out any cached state |
void |
notify(MCMCEvent e)
Function to be called for notification |
void |
print(java.lang.String data)
Write arbitrary text to the output stream. |
void |
println(java.lang.String data)
Write arbitrary text to the output stream. |
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 |
out
protected java.io.PrintWriter out
storeTime
protected boolean storeTime
hists
protected Histogram[] hists
min
protected double min
max
protected double max
bins
protected int bins
HistogramWriter
public HistogramWriter(java.lang.String filename,
boolean append,
boolean storeTime,
double min,
double max,
int bins)
throws java.io.IOException
HistogramWriter
public HistogramWriter(java.lang.String filename,
boolean append,
double min,
double max,
int bins)
throws java.io.IOException
HistogramWriter
public HistogramWriter(java.lang.String filename,
double min,
double max,
int bins)
throws java.io.IOException
HistogramWriter
protected HistogramWriter()
notify
public void notify(MCMCEvent e)
- Description copied from interface:
MCMCListener
- Function to be called for notification
- Specified by:
notify
in interface MCMCListener
flush
public void flush()
- Description copied from interface:
MCMCListenerWriter
- Write out any cached state
- Specified by:
flush
in interface MCMCListenerWriter
reset
public void reset()
- Description copied from interface:
ResettableListener
- Reset any stored state to the initial condition
- Specified by:
reset
in interface ResettableListener
close
public void close()
- Description copied from interface:
MCMCListenerWriter
- Write out any cached state and then close the output stream.
- Specified by:
close
in interface MCMCListenerWriter
println
public void println(java.lang.String data)
- Description copied from interface:
MCMCListenerWriter
- Write arbitrary text to the output stream.
- Specified by:
println
in interface MCMCListenerWriter
print
public void print(java.lang.String data)
- Description copied from interface:
MCMCListenerWriter
- Write arbitrary text to the output stream.
- Specified by:
print
in interface MCMCListenerWriter