org.omegahat.Simulation.MCMC
Class CustomMarkovChain

java.lang.Object
  |
  +--org.omegahat.Simulation.MCMC.NotifyingMCMCObject
        |
        +--org.omegahat.Simulation.MCMC.BaseMarkovChain
              |
              +--org.omegahat.Simulation.MCMC.CustomMarkovChain
All Implemented Interfaces:
MarkovChain, NotifyingObject, java.lang.Runnable
Direct Known Subclasses:
CustomGibbsSampler, CustomHastingsCoupledSampler, CustomMetropolisHastingsSampler

public class CustomMarkovChain
extends BaseMarkovChain

Markov Chain that uses an internal MarkovProposal to generate the next Markov state.


Inner Class Summary
static class CustomMarkovChain.listenerPrinter
           
static class CustomMarkovChain.NormalGenerator
           
 
Inner classes inherited from class org.omegahat.Simulation.MCMC.NotifyingMCMCObject
NotifyingMCMCObject.MyHandle
 
Field Summary
(package private)  MarkovProposal generator
           
 
Fields inherited from class org.omegahat.Simulation.MCMC.BaseMarkovChain
state
 
Fields inherited from class org.omegahat.Simulation.MCMC.NotifyingMCMCObject
listeners
 
Constructor Summary
protected CustomMarkovChain()
           
  CustomMarkovChain(ContainerState state, MarkovProposal generator)
           
  CustomMarkovChain(java.lang.Object state, MarkovProposal generator)
           
 
Method Summary
protected  MCMCState generate(MCMCState current)
          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

generator

MarkovProposal generator
Constructor Detail

CustomMarkovChain

public CustomMarkovChain(ContainerState state,
                         MarkovProposal generator)

CustomMarkovChain

public CustomMarkovChain(java.lang.Object state,
                         MarkovProposal generator)

CustomMarkovChain

protected CustomMarkovChain()
Method Detail

generate

protected MCMCState generate(MCMCState current)
Generate the next state from the current one. This method assumes that current is a ContainerState, and uses this to pass a "raw" object to the generator
Overrides:
generate in class BaseMarkovChain

main

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