473,386 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Bimodal random generation - help

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

Oct 1 '05 #1
2 3356
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
Oct 1 '05 #2
Easy: your bimodal distribution is a mixture of Gaussians. So you
randomly (according to the integrals over the individual Gaussians)
pick one of your sources first and then draw a random value from the
source you picked, which you said you can already do.

Oct 1 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Nicholas Geraldi | last post by:
Im looking for a decent random number generator. Im looking to make a large number of random numbers (100 or so, if not more) in a short period of time (as fast as possible). the function i was...
10
by: Virus | last post by:
Ok well what I am trying to do is have 1.) the background color to change randomly with 5 different colors.(change on page load) 2,) 10 different quotes randomly fadeing in and out in random...
10
by: Ioannis Vranos | last post by:
I want to create some random numbers for encryption purposes, and i wonder if the following scheme makes it more hard to guess the underneath number generation pattern, than the plain use of...
7
by: BOOGIEMAN | last post by:
//Why this doesn't work : using System; using System.Threading; class RandomObjectDemo { public static void Main( ) { Thread.Sleep( 1 );
4
by: Dimos | last post by:
Hello All, I need some help with random number generation. What I need exactly is: To create a few thousand numbers, decimal and integers, between 5 and 90, and then to export them as a...
6
by: Anamika | last post by:
I am doing a project where I want to generate random numbers for say n people.... These numbers should be unique for n people. Two people should not have same numbers.... Also the numbers...
21
by: chico_yallin | last post by:
I just wana make a random id number based on4 digits-for examples?? Thanks in Advance Ch.Yallin
16
by: jason.cipriani | last post by:
I am looking for a random number generator implementation with the following requirements: - Thread-safe, re-entrant. - Produces consistently reproducible sequences of psuedo-random numbers...
3
by: TD | last post by:
I found a freeware dll, md5lib.dll, on the web and am trying to use it in Acess 2003. I entered this in a module in the database: Public Declare Function StringMD5 Lib...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.