SSJ  3.3.1
Stochastic Simulation in Java
Public Member Functions | Protected Attributes | List of all members
MonteCarloIntegrator Class Reference
Inheritance diagram for MonteCarloIntegrator:
[legend]
Collaboration diagram for MonteCarloIntegrator:
[legend]

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

Member Function Documentation

◆ getTotalSimulations()

int getTotalSimulations ( )

Returns the number of samples.

Implements Integrator.

◆ integrate() [1/4]

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/4]

double integrate ( MonteCarloModelDouble  model)

Shorthand to integrate without having to pass a Tally object.

Implements Integrator.

◆ integrate() [3/4]

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.

◆ integrate() [4/4]

void integrate ( MonteCarloModel< double[]>  model,
double []  values 
)


Implements Integrator.


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