public class MarkovChain extends Object implements MarkovStepGenerator
Modifier and Type | Field and Description |
---|---|
private int |
chainLength |
private MonteCarloStep |
currentStep |
private MarkovProposalFunction |
generator |
private MonteCarloStep |
initialStep |
Constructor and Description |
---|
MarkovChain(MonteCarloStep initialStep)
Create a new Markov chain with an initial step.
|
MarkovChain(MonteCarloStep initialStep,
MarkovProposalFunction generator)
Create a new Markov Chain with an initial step and proposal function.
|
Modifier and Type | Method and Description |
---|---|
MonteCarloStep |
generateNextStep(MonteCarloStep step)
Generate the next step in the path.
|
MonteCarloStep |
getInitialStep()
Get the initial Step of the path.
|
private MonteCarloStep currentStep
private MonteCarloStep initialStep
private final MarkovProposalFunction generator
private int chainLength
public MarkovChain(MonteCarloStep initialStep)
initialStep
- the initial step.public MarkovChain(MonteCarloStep initialStep, MarkovProposalFunction generator)
initialStep
- the initial step.generator
- the generator object for proposing new steps.public final MonteCarloStep generateNextStep(MonteCarloStep step)
MarkovStepGenerator
generateNextStep
in interface MarkovStepGenerator
step
- the current step.public final MonteCarloStep getInitialStep()
MarkovStepGenerator
getInitialStep
in interface MarkovStepGenerator
Copyright © 2015 University of Glasgow. All rights reserved.