From 7ca554bd910544536f0ba59b8393df9a20975483 Mon Sep 17 00:00:00 2001 From: Korcsmaros Berta Date: Tue, 31 Oct 2017 13:26:45 +0100 Subject: [PATCH] fixed run for uniform,gauss,layer --- src/BM1DProcess.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BM1DProcess.cc b/src/BM1DProcess.cc index 7a907c4..f316fb2 100644 --- a/src/BM1DProcess.cc +++ b/src/BM1DProcess.cc @@ -20,7 +20,7 @@ void BM1DProcess::Run(int nRuns, int nSteps, double p0, double p1) t.push_back(0.0); //let's start at t=0, x=0, you can change it if you vant, please use Set methods x.push_back(0.0); - for(int ii = 0; ii < nSteps ; ii++) + for(int ii = 1; ii < nSteps ; ii++) { rand1 = randomGenerator->Uniform(); @@ -55,7 +55,7 @@ void BM1DProcess::Run(int nRuns, int nSteps, double p0, double mu, double sigma) t.push_back(0.0); //let's start at t=0, x=0, you can change it if you vant, please use Set methods x.push_back(0.0); - for(int ii = 0; ii < nSteps ; ii++) + for(int ii = 1; ii < nSteps ; ii++) { rand1 = randomGenerator->Uniform(); @@ -84,7 +84,7 @@ void BM1DProcess::Run(int nRuns, int nSteps, double p0, double x1, double x2, do double randGauss; - for(int ii = 0; ii < nSteps ; ii++) + for(int ii = 1; ii < nSteps ; ii++) { rand1 = randomGenerator->Uniform();