modified MarkovPath random generation

This commit is contained in:
asanaz
2020-12-11 10:36:23 +01:00
parent 1a37e99dfd
commit 953cf4d4ff
2 changed files with 4 additions and 2 deletions

View File

@ -66,7 +66,8 @@ MarkovPath::MarkovPath
intervalSizesCumulative_(numIntervals_),
Pjump_(0.0),
intervalWeights_(propsDict_.lookupOrDefault<scalarList>("intervalWeights",scalarList(numIntervals_,1.0))),
intervalWeightsCumulative_(intervalWeights_)
intervalWeightsCumulative_(intervalWeights_),
ranGen(clock::getTime()+pid())
{
for(int i=0;i<numIntervals_;i++)
{
@ -150,7 +151,6 @@ void MarkovPath::computeRecPath()
void MarkovPath::extendPath()
{
Random ranGen(clock::getTime()+pid());
SymmetricSquareMatrix<scalar>& recurrenceMatrix( base_.recM().recurrenceMatrix() );

View File

@ -82,6 +82,8 @@ protected:
scalarList intervalWeightsCumulative_;
Random ranGen;
public: