ab*******@yahoo.com wrote:
Hi,
I would like to generate random values which are in bimodal
distribution. If I can give the two peak means and the variance values,
can I get any function to generate them from the uniform random values.
I have seen how to generate gaussian by BoxMuller method. But am not
finding any way to generate the numbers using bimodal distribution..
Please help me out in this....
Thanks in advance.
Abhi
a) This is not a C++ language question proper and therefore off topic in
this group.
b) As far as I know there is nothing called "the bimodal distribution"
defined by two peak and variance values. The term "bimodal" applies to any
distribution that has two local maxima.
c) D.E. Knuth discusses algorithms of generating random variables with
specified distribution in
D.E. Knuth: The Art of Computer Programming
Vol 2: Seminumerical Algorithms, Chapter 3.4
Best
Kai-Uwe Bux