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 |
Sets the boolean indicating is a trajectory is present.
- Parameters
-
v | value of the boolean to be set |
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 |
Sets the size of the trajectory.
- Parameters
-
void simulationResult::writeTrajectory |
( |
FILE * |
out, |
|
|
string |
format |
|
) |
| |
Writes the trajectory to a file.
- Parameters
-
out | the file descriptor to which the trajectory is written |
format | the format used for writing. Supported formats are "standard" and "" which are equivalent |
The documentation for this class was generated from the following files: