Search Results

Search: Posts Made By: Tyler_92
Forum: Programming 05-06-2013
3,659
Posted By Tyler_92
Ah, I think I may have identified the problem. I...
Ah, I think I may have identified the problem. I pulled the instantiation of the TRandom1 class out of RandomDoor() and set it outside of the loop. The program still takes a very long time, but the...
Forum: Programming 05-05-2013
3,659
Posted By Tyler_92
Yes, by "loop through" I mean that iterations is...
Yes, by "loop through" I mean that iterations is 10,000. 389 is the lux factor passed to the TRandom1 class constructor. It determines the quality and time required to generate the random numbers.
Forum: Programming 05-05-2013
3,659
Posted By Tyler_92
I should have clarified, this program was written...
I should have clarified, this program was written for ROOT, which uses CINT ( a c++ interpreter). In this case, "MontyHall2(parameters)" acts as the traditional c++ main function.
I googled...
Forum: Programming 05-05-2013
3,659
Posted By Tyler_92
C++/ROOT Memory Allocation?
Hello,
I am new to C++ programming, so I'm still getting a feel for things. I recently wrote a simple C++ program (to be used as a ROOT Macro) to conduct a statistical analysis of a varied version...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 07:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy