Marmote Core
The project aims at realizing the prototype of a software environment dedicated to modeling with Markov chains.
Public Member Functions | List of all members
simulationResult Class Reference

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>

Public Member Functions

 simulationResult (int size, timeType t, bool stats)
 
 simulationResult (string format, string modelName, bool stats)
 
void setTrajectory (bool v)
 
void setTrajectorySize (int l)
 
void setTrajectory (double *d, int *s)
 Sets the trajectory element of the object, from pointers to tables. Tables are not copied. More...
 
void distrib (discreteDistribution *d)
 Sets the empirical distribution, from a distribution object. The object is not copied. More...
 
discreteDistributiongetDistribution ()
 Accessor to the empirical distribution. More...
 
 simulationResult (int size, timeType t, bool stats)
 
 simulationResult (string format, string modelName, bool stats)
 
void setTrajectory (bool v)
 
void setTrajectorySize (int l)
 
void setTrajectory (double *d, int *s)
 Sets the trajectory element of the object, from pointers to tables. Tables are not copied. More...
 
void distrib (discreteDistribution *d)
 Sets the empirical distribution, from a distribution object. The object is not copied. More...
 
discreteDistributiongetDistribution ()
 Accessor to the empirical distribution. More...
 

Detailed Description

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

Constructor & Destructor Documentation

simulationResult::simulationResult ( int  size,
timeType  t,
bool  stats 
)

Constructor for a simulation result object

Author
Alain Jean-Marie
Parameters
sizethe state of the state space
ttype of time: CONTINUOUS or DISCRETE
statswhether 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
formatthe format of the file: the PSI format is supported
modelNamethe name of the model
statswhether the occupancy distribution is present or not
simulationResult::simulationResult ( int  size,
timeType  t,
bool  stats 
)

Constructor for a simulation result object

Author
Alain Jean-Marie
Parameters
sizethe state of the state space
ttype of time: CONTINUOUS or DISCRETE
statswhether 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
formatthe format of the file: the PSI format is supported
modelNamethe name of the model
statswhether the occupancy distribution is present or not

Member Function Documentation

void simulationResult::distrib ( discreteDistribution d)
inline

Sets the empirical distribution, from a distribution object. The object is not copied.

Parameters
dthe distribution to be set
void simulationResult::distrib ( discreteDistribution d)
inline

Sets the empirical distribution, from a distribution object. The object is not copied.

Parameters
dthe distribution to be set
discreteDistribution* simulationResult::getDistribution ( )
inline

Accessor to the empirical distribution.

Returns
the distribution
discreteDistribution* simulationResult::getDistribution ( )
inline

Accessor to the empirical distribution.

Returns
the distribution
void simulationResult::setTrajectory ( bool  v)
inline
Parameters
v
void simulationResult::setTrajectory ( double *  d,
int *  s 
)
inline

Sets the trajectory element of the object, from pointers to tables. Tables are not copied.

Parameters
dthe table of transition dates
sthe table of visited states
void simulationResult::setTrajectory ( bool  v)
inline
Parameters
v
void simulationResult::setTrajectory ( double *  d,
int *  s 
)
inline

Sets the trajectory element of the object, from pointers to tables. Tables are not copied.

Parameters
dthe table of transition dates
sthe table of visited states
void simulationResult::setTrajectorySize ( int  l)
inline
Parameters
l
void simulationResult::setTrajectorySize ( int  l)
inline
Parameters
l

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