16 #ifndef HOMOGENOUS1DRANDOMWALK_H
17 #define HOMOGENOUS1DRANDOMWALK_H
19 #include "markovChain.h"
20 #include "Distribution/discreteDistribution.h"
21 #include "Distribution/geometricDistribution.h"
79 #endif // HOMOGENOUS1DRANDOMWALK_H
void write(string format, string prefix)
Writes a homogeneous1DRandomWalk chain in files with some specified format. Supported formats: ...
Definition: homogeneous1DRandomWalk.cpp:337
Markov Chain class.
Definition: markovChain.h:42
void traj(const string path, const string file_out, int state, const int length)
PSI Trajectory Simulation.
Definition: psi_traj.cpp:86
void makeMarkovChain()
Instantiation of the generator for the markovChain ancestor.
Definition: homogeneous1DRandomWalk.cpp:87
~homogeneous1DRandomWalk()
Destructor for a homogeneous1DRandomWalk chain.
Definition: homogeneous1DRandomWalk.cpp:76
simulationResult * simulateChain(long int tMax, bool stat, bool traj, bool trace)
Simulates the evolution of a homogeneous1DRandomWalk chain.
Definition: homogeneous1DRandomWalk.cpp:203
discreteDistribution * transientDistribution(int t, int nMax)
Computes the transient distribution for a RW1D Markov Chain.
Definition: homogeneous1DRandomWalk.cpp:115
A class for representing probability distributions.
Definition: Distribution.h:44
double _r
r = 1 - p - q is the proba of staying in the same state
Definition: homogeneous1DRandomWalk.h:39
The 1-dimensional random walk with homogeneous transition probabilities. This model is characterized ...
Definition: homogeneous1DRandomWalk.h:32
double _p
the probability to jump to the right
Definition: homogeneous1DRandomWalk.h:37
homogeneous1DRandomWalk(double l, double m)
Constructor for a homogeneous1DRandomWalk chain with infinite state space.
Definition: homogeneous1DRandomWalk.cpp:36
string format()
Utility to get _format.
Definition: markovChain.h:210
int _size
the number of states; possibly infinite
Definition: homogeneous1DRandomWalk.h:35
Distribution * stationaryDistribution()
Computes the stationary distribution for a homogeneous1DRandomWalk chain. When the state space is inf...
Definition: homogeneous1DRandomWalk.cpp:148
double _q
the probability to jump to the left
Definition: homogeneous1DRandomWalk.h:38
double * _stateSpace
representation of the state space when finite
Definition: homogeneous1DRandomWalk.h:36
The general discrete distribution with finite support.
Definition: discreteDistribution.h:25
The class for transmitting (Monte Carlo) simulation results between objects. Simulation results may b...
Definition: simulationResult.h:33