|
SSJ
3.3.1
Stochastic Simulation in Java
|
Replicator class. More...
Public Member Functions | |
| Replicator (int nReplicates, RandomIntegrator integrator) | |
Creates a replicator that samples nReplicates replicates using integrator. | |
| RandomIntegrator | getIntegrator () |
| Returns the internal integrator. | |
| int | getNumReplicates () |
| Returns the number of replicates. | |
| int | getNumPoints () |
| Returns the number of points (or simulations) per sample integral. | |
| int | getTotalSimulations () |
| Returns the total number of times the model is simulated per call to an integrate() method: the number of replications multiplied by the number of points. | |
| void | setStream (RandomStream stream) |
Use stream as the source of randomness. More... | |
| RandomStream | getStream () |
| Returns the currently used random stream. 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. | |
| void | integrate (MonteCarloModel< double[]> model, ListOfTallies<? extends Tally > stat) |
| Integrates a model by means of simulation. More... | |
| void | integrate (MonteCarloModel< double[]> model, double[] values) |
| Shorthand to integrate without having to pass a ListOfTallies object. | |
| String | toString () |
Protected Attributes | |
| int | nReplicates |
| RandomIntegrator | integrator |
| Tally | statValue = null |
| ListOfTallies< Tally > | statValueList = null |
Replicator class.
Replicates mutliple samples of an integral computed by an internal random integrator.
| RandomStream getStream | ( | ) |
| 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.
| void integrate | ( | MonteCarloModel< double[]> | model, |
| ListOfTallies<? extends Tally > | stat | ||
| ) |
Integrates a model by means of simulation.
The output values are added to the statistical collector stat.
Implements Integrator.
| void setStream | ( | RandomStream | stream | ) |
Use stream as the source of randomness.
Sets the random stream of the point set randomization to stream.
Implements RandomIntegrator.
1.8.14