Package | Description |
---|---|
broadwick.montecarlo |
Monte Carlo simulation package.
|
broadwick.montecarlo.acceptor |
All Monte Carlo acceptance criteria can be found in this package.
|
broadwick.montecarlo.markovchain |
This package contains classes for generating Monte Carlo Markov Chains.
|
Modifier and Type | Class and Description |
---|---|
class |
MonteCarloDefaultResults
A default implementation for the MonteCarloResults interface.
|
(package private) class |
Poison
Poison object that causes the consumer of the MonteCarlo results to stop looking for objects on the queue.
|
Modifier and Type | Field and Description |
---|---|
private MonteCarloResults |
Consumer.joinedResults |
private MonteCarloResults |
MonteCarlo.resultsConsumer |
Modifier and Type | Field and Description |
---|---|
private ArrayBlockingQueue<MonteCarloResults> |
Producer.queue |
private ArrayBlockingQueue<MonteCarloResults> |
Consumer.queue |
Modifier and Type | Method and Description |
---|---|
MonteCarloResults |
MonteCarlo.getResults()
Get a copy of the results from the simulation.
|
MonteCarloResults |
Poison.join(MonteCarloResults results) |
MonteCarloResults |
MonteCarloResults.join(MonteCarloResults results)
Join another Monte Carlo results object to this one.
|
MonteCarloResults |
MonteCarloDefaultResults.join(MonteCarloResults results) |
abstract MonteCarloResults |
MonteCarloScenario.run(int seed)
Compute the value of the Monte Carlo model/simulation at the given set of coordinates.
|
Modifier and Type | Method and Description |
---|---|
MonteCarloResults |
Poison.join(MonteCarloResults results) |
MonteCarloResults |
MonteCarloResults.join(MonteCarloResults results)
Join another Monte Carlo results object to this one.
|
MonteCarloResults |
MonteCarloDefaultResults.join(MonteCarloResults results) |
void |
MonteCarlo.setResultsConsumer(MonteCarloResults consumer)
Set the consumer object for this Monte Carlo simulation.
|
Constructor and Description |
---|
Consumer(ArrayBlockingQueue<MonteCarloResults> queue,
MonteCarloResults joinedResults)
Create the consumer object.
|
Constructor and Description |
---|
Consumer(ArrayBlockingQueue<MonteCarloResults> queue,
MonteCarloResults joinedResults)
Create the consumer object.
|
Producer(ArrayBlockingQueue<MonteCarloResults> queue,
MonteCarloScenario simulation,
int numSimulations)
Create the producer object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MonteCarloAcceptor.accept(MonteCarloResults oldResult,
MonteCarloResults newResult)
Accept a step in a Monte Carlo path/chain based on the ratio of the results at each step.
|
boolean |
MetropolisHastings.accept(MonteCarloResults oldResult,
MonteCarloResults newResult) |
Modifier and Type | Field and Description |
---|---|
private MonteCarloResults |
MarkovChainMonteCarlo.consumer |
Constructor and Description |
---|
MarkovChainMonteCarlo(MonteCarloScenario model,
int numSimulations,
MonteCarloResults consumer,
MarkovChainController controller,
MarkovStepGenerator generator)
Create a Monte Carlo instance.
|
MarkovChainMonteCarlo(MonteCarloScenario model,
int numSimulations,
MonteCarloResults consumer,
MarkovStepGenerator generator)
Create a Monte Carlo instance.
|
Copyright © 2015 University of Glasgow. All rights reserved.