|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.omegahat.Simulation.MCMC.NotifyingMCMCObject | +--org.omegahat.Simulation.MCMC.BaseMarkovChain
An abstract class providing methods implementing the interface MarkovChain
.
Inner classes inherited from class org.omegahat.Simulation.MCMC.NotifyingMCMCObject |
NotifyingMCMCObject.MyHandle |
Field Summary | |
(package private) MCMCState |
state
|
Fields inherited from class org.omegahat.Simulation.MCMC.NotifyingMCMCObject |
listeners |
Constructor Summary | |
BaseMarkovChain()
|
Method Summary | |
protected abstract MCMCState |
generate(MCMCState current)
Generate the next state from the current one |
MCMCState |
getState()
Get the current state of the Markov Chain. |
void |
iterate(int n)
Perform several step s. |
void |
run()
|
void |
step()
Generate the next state from the current state. |
Methods inherited from class org.omegahat.Simulation.MCMC.NotifyingMCMCObject |
notifyAll, registerListener, unregisterListener |
Methods inherited from class java.lang.Object |
|
Field Detail |
MCMCState state
Constructor Detail |
public BaseMarkovChain()
Method Detail |
public MCMCState getState()
getState
in interface MarkovChain
public void step()
step
in interface MarkovChain
public void iterate(int n)
step
s.iterate
in interface MarkovChain
n
- how many stepspublic void run()
run
in interface java.lang.Runnable
protected abstract MCMCState generate(MCMCState current)
generate
in class NotifyingMCMCObject
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |