Chronology Current Month Current Thread Current Date
[Year List] [Month List (current year)] [Date Index] [Thread Index] [Thread Prev] [Thread Next] [Date Prev] [Date Next]

Re: [Phys-L] noise question(s)



On 07/22/2015 08:54 AM, Bernard Cleyet wrote:

std::uniform_int_distribution<int> dist(0, 100);
[...]
assumes “white” noise

The uniform distribution over the interval [0, 100]
is not remotely the same as white noise.

Pick one or the other.

If you decide you want white noise, consider this:
std::normal_distribution<double> distribution(5.0,2.0);

Reference:
http://www.cplusplus.com/reference/random/normal_distribution/