The class for transmitting (Monte Carlo) simulation results between objects. Simulation results may be diverse: this structure should be able to accomodate each of the results, even if they are not all present at the same time. Results include: trajectories, empirical frequencies.
More...
#include <simulationResult.h>
The class for transmitting (Monte Carlo) simulation results between objects. Simulation results may be diverse: this structure should be able to accomodate each of the results, even if they are not all present at the same time. Results include: trajectories, empirical frequencies.
- Author
- Alain Jean-Marie
simulationResult::simulationResult |
( |
int |
size, |
|
|
timeType |
t, |
|
|
bool |
stats |
|
) |
| |
Constructor for a simulation result object
- Author
- Alain Jean-Marie
- Parameters
-
size | the state of the state space |
t | type of time: CONTINUOUS or DISCRETE |
stats | whether the occupancy distribution is present or not |
simulationResult::simulationResult |
( |
string |
format, |
|
|
string |
modelName, |
|
|
bool |
stats |
|
) |
| |
Constructor for a simulation result object from a file
- Author
- Alain Jean-Marie
- Parameters
-
format | the format of the file: the PSI format is supported |
modelName | the name of the model |
stats | whether the occupancy distribution is present or not |
Sets the empirical distribution, from a distribution object. The object is not copied.
- Parameters
-
d | the distribution to be set |
Accessor to the empirical distribution.
- Returns
- the distribution
void simulationResult::setTrajectory |
( |
bool |
v | ) |
|
|
inline |
void simulationResult::setTrajectory |
( |
double * |
d, |
|
|
int * |
s |
|
) |
| |
|
inline |
Sets the trajectory element of the object, from pointers to tables. Tables are not copied.
- Parameters
-
d | the table of transition dates |
s | the table of visited states |
void simulationResult::setTrajectorySize |
( |
int |
l | ) |
|
|
inline |
The documentation for this class was generated from the following files: