
public class MetropolisHastings extends Object implements MonteCarloAcceptor
| Constructor and Description |
|---|
MetropolisHastings(int seed)
Create a MetropolisHastings acceptor with a given random seed.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(MonteCarloResults oldResult,
MonteCarloResults newResult)
Accept a step in a Monte Carlo path/chain based on the ratio of the results at each step.
|
private static final RNG GENERATOR
public MetropolisHastings(int seed)
seed - the random seed to use in the acceptor.public final boolean accept(MonteCarloResults oldResult, MonteCarloResults newResult)
MonteCarloAcceptoraccept in interface MonteCarloAcceptoroldResult - the results at the previous step.newResult - the result at the current (proposed) step.Copyright © 2015 University of Glasgow. All rights reserved.