|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wwu.tobikley.acgc.mc.HomogeneousMarkovChain
public abstract class HomogeneousMarkovChain
Abstract implementation of a markov chain for simulation purposes, that provides all necessary functionality but the transition mechanim. As a markov chain consists of the following three elements:
Field Summary | |
---|---|
protected Object |
currentState
Current state. |
protected RandomEngine |
randomEngine
Pseudo random number generator used when updating. |
protected int |
t
Current time. |
Constructor Summary | |
---|---|
HomogeneousMarkovChain(RandomEngine randomEngine,
Object initialState)
Creates a new instance of the markov chain. |
Method Summary | |
---|---|
Object |
next()
Performs one update on the markov chain. |
Object |
next(int n)
Performs n updates on the markov chain. |
abstract Object |
update(Object fromState)
Spezifies the transition mechanism of the markov chain. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Object currentState
protected int t
protected RandomEngine randomEngine
Constructor Detail |
---|
public HomogeneousMarkovChain(RandomEngine randomEngine, Object initialState)
randomEngine
- Pseudo random number generator.initialState
- State to initialise the markov chain at time t = 0.Method Detail |
---|
public abstract Object update(Object fromState)
randomEngine.raw()
.
fromState
- State at time t.
public Object next()
public Object next(int n)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |