Skip to content
  • Mohammad Akhlaghi's avatar
    Random number generator issues and other minor corrections · 855c21ac
    Mohammad Akhlaghi authored
    There were serveral corrections made in this commit:
    
     1. In MakeProfiles and MakeNoise that used the random number
        generator, everytime a random number was needed, a generator would
        be allocated and a number pulled out of it. Now I have put the
        main allocation of the random number generator inside ui.c and
        then the functions that need it either directly use it (MakeNoise)
        or get a clone of it for each thread and for each profile it is
        memcpy'd into the clone. This makes things much more cleaner for
        the human reader and the computer!
    
     2. In MakeNoise I also removed the backgroundinmean option. Since it
        just made things more complicated and I couldn't see how it would
        be useful. Adding noise without adding the background (the default
        behavior prior to this commit) was just useless.
    
     3. A bug in Convolve was fixed. The floating point error results
        after convolution were not correctly set to zero. Now it is fixed.
    855c21ac
To find the state of this project's repository at the time of any of these versions, check out the tags.