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)
From
: John Denker <
jsd@av8n.com
>
Date
: Wed, 22 Jul 2015 09:30:42 -0700
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/
References
:
[Phys-L] noise question(s)
From:
Bernard Cleyet <bernard@cleyet.org>
Prev by Date:
[Phys-L] noise question(s)
Next by Date:
Re: [Phys-L] Importance of practice
Previous by thread:
[Phys-L] noise question(s)
Next by thread:
[Phys-L] Fwd: FW: RE: Importance of practice
Index(es):
Date
Thread