1 #ifndef MULTIDIMHOMTRANSITION_H
2 #define MULTIDIMHOMTRANSITION_H
4 #include "transitionStructure.h"
64 int dimSize(
int d) {
return _dimSize[d]; };
70 double p(
int d) {
return _p[d]; };
76 double q(
int d) {
return _q[d]; };
80 bool setEntry(
int i,
int j,
double val);
81 double getEntry(
int i,
int j);
83 int getCol(
int i,
int k);
84 double getEntryByCol(
int i,
int k);
89 void evaluateMeasure(
double* d,
double* res);
91 void evaluateValue(
double* v,
double* res);
92 void write(FILE* out,
string format);
100 void decodeState(
int index,
int* buf );
101 void nextState(
int* buf );
102 void decodeTransitions(
int index );
106 #endif // MULTIDIMHOMTRANSITION_H
double p(int d)
Read accessor for the jump probability to the right in each dimension.
Definition: multiDimHomTransition.h:70
int * _dimSize
size of the state space in each dimension
Definition: multiDimHomTransition.h:27
int _nbDims
the number of dimensions
Definition: multiDimHomTransition.h:26
double * _q
probas to jump to the left in each dimension
Definition: multiDimHomTransition.h:29
int dimSize(int d)
Read accessor for the size of the state space in each dimension.
Definition: multiDimHomTransition.h:64
Abstract class for transition structures. These are structures which describe transitions to one stat...
Definition: transitionStructure.h:17
Class for multidimensional, homogeneous random walk transition structures. These are characterized by...
Definition: multiDimHomTransition.h:23
The general discrete distribution with finite support.
Definition: discreteDistribution.h:25
double * _p
probas to jump to the right in each dimension
Definition: multiDimHomTransition.h:28
double q(int d)
Read accessor for the jump probability to the right in each dimension.
Definition: multiDimHomTransition.h:76