SSJ
3.3.1
Stochastic Simulation in Java
|
Public Member Functions | |
MonteCarloIntegrator (int samples) | |
MonteCarloIntegrator (int samples, RandomStream stream) | |
int | getNumPoints () |
Returns the number of samples. | |
int | getTotalSimulations () |
Returns the number of samples. More... | |
void | integrate (MonteCarloModelDouble model, Tally statValue) |
Integrates a model by means of simulation. More... | |
double | integrate (MonteCarloModelDouble model) |
Shorthand to integrate without having to pass a Tally object. More... | |
void | integrate (MonteCarloModel< double[]> model, ListOfTallies<? extends Tally > statValue) |
Integrates a model by means of simulation. More... | |
void | integrate (MonteCarloModel< double[]> model, double[] values) |
More... | |
String | toString () |
Public Member Functions inherited from MonteCarloSampler | |
MonteCarloSampler (int nSamples) | |
MonteCarloSampler (int nSamples, RandomStream stream) | |
RandomStream | getStream () |
Returns the currently used random stream. More... | |
int | getNumSimulationsPerSample () |
Returns the number of times the model is simulated each time a sample is produced. More... | |
int | getNumSamples () |
Returns the number of samples produced each time the simulateRuns() method is called. More... | |
void | setNumSamples (int nSamples) |
Sets the number of samples. | |
void | setStream (RandomStream stream) |
Use stream to produce random points. More... | |
void | simulateRuns (MonteCarloModelDouble model, Tally collector) |
More... | |
String | toString () |
Public Member Functions inherited from RandomIntegrator | |
void | setStream (RandomStream stream) |
Use stream as the source of randomness. | |
RandomStream | getStream () |
Returns the currently used random stream. More... | |
Protected Attributes | |
Tally | statValue = null |
ListOfTallies< Tally > | statValueList = null |
Protected Attributes inherited from MonteCarloSampler | |
int | nSamples |
RandomStream | stream |
Additional Inherited Members | |
Package Functions inherited from MonteCarloSampler | |
public< E > void | simulateRuns (MonteCarloModel<? extends E > model, ObservationCollector< E > collector) |
More... | |
int getTotalSimulations | ( | ) |
Returns the number of samples.
Implements Integrator.
void integrate | ( | MonteCarloModelDouble | model, |
Tally | statValue | ||
) |
Integrates a model by means of simulation.
The output values are added to the statistical collector statValue
.
Implements Integrator.
double integrate | ( | MonteCarloModelDouble | model | ) |
Shorthand to integrate without having to pass a Tally object.
Implements Integrator.
void integrate | ( | MonteCarloModel< double[]> | model, |
ListOfTallies<? extends Tally > | statValue | ||
) |
Integrates a model by means of simulation.
The output values are added to the statistical collector statValue
.
Implements Integrator.
void integrate | ( | MonteCarloModel< double[]> | model, |
double [] | values | ||
) |
Implements Integrator.