SSJ  3.3.1
Stochastic Simulation in Java
Public Member Functions | Protected Attributes | List of all members
Replicator Class Reference

Replicator class. More...

Inheritance diagram for Replicator:
[legend]
Collaboration diagram for Replicator:
[legend]

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< TallystatValueList = null
 

Detailed Description

Replicator class.

Replicates mutliple samples of an integral computed by an internal random integrator.

Member Function Documentation

◆ getStream()

RandomStream getStream ( )

Returns the currently used random stream.

May be null.

Implements RandomIntegrator.

◆ integrate() [1/2]

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.

◆ integrate() [2/2]

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.

◆ setStream()

void setStream ( RandomStream  stream)

Use stream as the source of randomness.

Sets the random stream of the point set randomization to stream.

Implements RandomIntegrator.


The documentation for this class was generated from the following file: