org.omegahat.Simulation.MCMC.Examples
Class SimpleMarkovChain

java.lang.Object
  |
  +--org.omegahat.Simulation.MCMC.NotifyingMCMCObject
        |
        +--org.omegahat.Simulation.MCMC.BaseMarkovChain
              |
              +--org.omegahat.Simulation.MCMC.Examples.SimpleMarkovChain
All Implemented Interfaces:
MarkovChain, NotifyingObject, java.lang.Runnable

public class SimpleMarkovChain
extends BaseMarkovChain

A simple Markov Chain example. It simply generates its next state from N(0,1) regardless of the current state.


Inner Class Summary
protected  class SimpleMarkovChain.doubleState
           
static class SimpleMarkovChain.listenerPrinter
           
 
Inner classes inherited from class org.omegahat.Simulation.MCMC.NotifyingMCMCObject
NotifyingMCMCObject.MyHandle
 
Field Summary
protected  Normal norm
           
protected  PRNG prng
           
 
Fields inherited from class org.omegahat.Simulation.MCMC.BaseMarkovChain
state
 
Fields inherited from class org.omegahat.Simulation.MCMC.NotifyingMCMCObject
listeners
 
Constructor Summary
SimpleMarkovChain(PRNG prng)
           
 
Method Summary
 MCMCState generate(MCMCState ignored)
          Generate the next state from the current one
static void main(java.lang.String[] argv)
           
 
Methods inherited from class org.omegahat.Simulation.MCMC.BaseMarkovChain
getState, iterate, run, step
 
Methods inherited from class org.omegahat.Simulation.MCMC.NotifyingMCMCObject
notifyAll, registerListener, unregisterListener
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

prng

protected PRNG prng

norm

protected Normal norm
Constructor Detail

SimpleMarkovChain

public SimpleMarkovChain(PRNG prng)
Method Detail

generate

public MCMCState generate(MCMCState ignored)
Description copied from class: BaseMarkovChain
Generate the next state from the current one
Overrides:
generate in class BaseMarkovChain

main

public static void main(java.lang.String[] argv)