fixed run for uniform,gauss,layer
This commit is contained in:
		
							parent
							
								
									01754e746a
								
							
						
					
					
						commit
						7ca554bd91
					
				| 
						 | 
				
			
			@ -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();
 | 
			
		||||
					
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue