Marmote Core
The project aims at realizing the prototype of a software environment dedicated to modeling with Markov chains.
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
homogeneous1DRandomWalk.h
1
/* Marmote is free software: you can redistribute it and/or modify
2
it under the terms of the GNU General Public License as published by
3
the Free Software Foundation, either version 3 of the License, or
4
(at your option) any later version.
5
6
Marmote is distributed in the hope that it will be useful,
7
but WITHOUT ANY WARRANTY; without even the implied warranty of
8
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9
GNU General Public License for more details.
10
11
You should have received a copy of the GNU General Public License
12
along with Marmote. If not, see <http://www.gnu.org/licenses/>.
13
14
Copyright 2015 Alain Jean-Marie, Jean-Michel Fourneau, Jean-Marc Vincent, Issam Rabhi */
15
16
#ifndef HOMOGENOUS1DRANDOMWALK_H
17
#define HOMOGENOUS1DRANDOMWALK_H
18
19
#include "markovChain.h"
20
#include "Distribution/discreteDistribution.h"
21
#include "Distribution/geometricDistribution.h"
22
32
class
homogeneous1DRandomWalk
:
public
markovChain
33
{
34
protected
:
35
int
_size
;
36
double
*
_stateSpace
;
37
double
_p
;
38
double
_q
;
39
double
_r
;
41
public
:
42
homogeneous1DRandomWalk
(
double
l,
double
m );
43
homogeneous1DRandomWalk
(
int
sz,
double
l,
double
m );
44
~homogeneous1DRandomWalk
();
45
46
void
makeMarkovChain
();
47
48
discreteDistribution
*
transientDistribution
(
int
t,
int
nMax );
49
geometricDistribution
*
stationaryDistribution
();
50
discreteDistribution
*
stationaryDistribution
(
int
nMax );
51
simulationResult
*
52
simulateChain
(
long
int
tMax,
bool
stat,
bool
traj,
bool
trace );
53
54
public
:
55
void
write
(
string
format
,
string
prefix);
56
57
};
58
59
#endif // HOMOGENOUS1DRANDOMWALK_H
Generated on Thu May 21 2015 17:06:41 for Marmote Core by
1.8.3.1