Re: code for random placement of set of numbers
- From: thajudin <thajudin@xxxxxxxxxxxxxx>
- Date: Fri, 2 Jun 2006 05:35:43 -0400
Inf wrote:
suggest what
thajudin wrote:
Inf wrote:
Dear friendI have tried it, and it is working. Could u just
using youris
to
be done for distributing the set of numbers in "normaldistribution".
What I mean is, after randomnly placing the numbers
sequence,program, if we plot the histogram of the generated
it- by
should follow a bell shaped curve.
Thajudin,
could you say a bit more about what you require;
you wish to pick your numbers from a non-uniform
distribution - if so, the distribution has to be specified
Dear Inf,whichassigningDear Inf,
a probability to each of the numbers in the original list.
Regards,
Inf.
i would like to have the numbers follow 'normal distribution',
is bell shaped.
rgds
thajudin
Thajudin:
you are dealing with a finite set of numbers, your example was
1 2 3 5 6 9. Would you like 5 to occur most often, then 3 or 6 or
what?
If you do want something like this then you need to assign a
probability (of being
picked) to each of your numbers in the original set.
If you somehow want these to have a normal distribution then you
need
to
1) specify the mean and a variance of the normal distribution
2) connect up the probability of being picked to the normal
distribution you have
just specified.
Regards,
Inf.
I had given the limited number of elements just as an example. I may
use set which contains about 200 elements. What you have asked is
correct. The maximum frequency of appearance (max. probability) will
br for the central element, (ie 3 and 5 in the example cited). When
the elements are arranged in an order, the elements away from the
central values will have less frequency(less probability) and that
follows a 'normal distribution'.
I am sure that you can help in coding this requirement.
rgds
thajudin
.
- Follow-Ups:
- References:
- Re: code for random placement of set of numbers
- From: thajudin
- Re: code for random placement of set of numbers
- From: Inf
- Re: code for random placement of set of numbers
- From: thajudin
- Re: code for random placement of set of numbers
- From: Inf
- Re: code for random placement of set of numbers
- Prev by Date: Re: xlsread and time data handling
- Next by Date: linking with mex
- Previous by thread: Re: code for random placement of set of numbers
- Next by thread: Re: code for random placement of set of numbers
- Index(es):
Relevant Pages
|