fixed BM1D.cc
This commit is contained in:
		
							parent
							
								
									a3ac1c6d3d
								
							
						
					
					
						commit
						81a64a3884
					
				
							
								
								
									
										6
									
								
								BM1D.cc
								
								
								
								
							
							
						
						
									
										6
									
								
								BM1D.cc
								
								
								
								
							| 
						 | 
					@ -39,9 +39,7 @@ int main(int argc, char* argv[])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  TApplication App("tapp", &argc, argv);
 | 
					  TApplication App("tapp", &argc, argv);
 | 
				
			||||||
  Int_t n = 1000;
 | 
					  BM1DProcess *myBM1DProcess = new BM1DProcess();
 | 
				
			||||||
  BM1DProcess *myBM1DProcess = new BM1DProcess(n);
 | 
					 | 
				
			||||||
  myBM1DProcess->Init();
 | 
					 | 
				
			||||||
    switch(random_type){
 | 
					    switch(random_type){
 | 
				
			||||||
        case 'u':
 | 
					        case 'u':
 | 
				
			||||||
            myBM1DProcess->Run(nRuns, nSteps, p0, p1);
 | 
					            myBM1DProcess->Run(nRuns, nSteps, p0, p1);
 | 
				
			||||||
| 
						 | 
					@ -58,7 +56,7 @@ int main(int argc, char* argv[])
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Plotter* myPlotter = new Plotter();
 | 
					  Plotter* myPlotter = new Plotter();
 | 
				
			||||||
  myPlotter->Plot(n, myBM1DProcess->GetT(), myBM1DProcess->GetX());
 | 
					  myPlotter->Plot(nRuns, nSteps, myBM1DProcess->GetT(), myBM1DProcess->GetX(), true); 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  App.Run();
 | 
					  App.Run();
 | 
				
			||||||
  return 0;
 | 
					  return 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue