public abstract class MarkovChainObserver extends Object implements Comparable<MarkovChainObserver>
Modifier and Type | Field and Description |
---|---|
protected MarkovChainMonteCarlo |
monteCarlo |
Constructor and Description |
---|
MarkovChainObserver(MarkovChainMonteCarlo mc)
Creates an observer dedicated to one Monte Carlo process.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MarkovChainObserver o) |
abstract void |
finished()
Gets called when a simulation has finished, directly after the termination check.
|
abstract void |
started()
Gets called when the simulation has started after the initialization and before the termination condition is
checked the first time.
|
abstract void |
step()
Gets called when the simulation has taken a step, whether or not the step is accepted or not or if the
burn-in period has elapsed.
|
abstract void |
takeMeasurements()
Gets called by the Monte Carlo process after the burnin period has elaspsed.
|
protected final MarkovChainMonteCarlo monteCarlo
public MarkovChainObserver(MarkovChainMonteCarlo mc)
mc
- the Monte Carlo processpublic final int compareTo(MarkovChainObserver o)
compareTo
in interface Comparable<MarkovChainObserver>
public abstract void started()
public abstract void step()
public abstract void takeMeasurements()
public abstract void finished()
Copyright © 2015 University of Glasgow. All rights reserved.