
public class MarkovChainMaxNumStepController extends Object implements MarkovChainController
| Modifier and Type | Field and Description |
|---|---|
private int |
maxSteps |
| Constructor and Description |
|---|
MarkovChainMaxNumStepController()
Create a Monte Carlo controller object that stops the run after a specified number of steps (a fixed path
length).
|
MarkovChainMaxNumStepController(int maxSteps)
Create a Monte Carlo controller object that stops the run after a specified number of steps (a fixed path
length).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
goOn(MarkovChainMonteCarlo mc)
Returns whether or not to continue with the calculation.
|
public MarkovChainMaxNumStepController()
public MarkovChainMaxNumStepController(int maxSteps)
maxSteps - the maximum length of the monte carlo chain.public final boolean goOn(MarkovChainMonteCarlo mc)
MarkovChainControllergoOn in interface MarkovChainControllermc - the Monte Carlo process this object is to control.Copyright © 2015 University of Glasgow. All rights reserved.