Re: non-uniform distribution

2010-06-12 Thread Javier Montoya
On Jun 12, 3:21 pm, Ian wrote: > On 12/06/10 11:05, Javier Montoya wrote:> Dear all, > > > I need to generate a vector of random float numbers between [0,1] such > > that their sum equals 1 and that are distributed non-uniformly. > > Is there any python function that generates such a vector? > > >

Re: non-uniform distribution

2010-06-12 Thread Ian
On 12/06/10 11:05, Javier Montoya wrote: Dear all, I need to generate a vector of random float numbers between [0,1] such that their sum equals 1 and that are distributed non-uniformly. Is there any python function that generates such a vector? Best wishes Hi Javier, The answer to your qu

Re: non-uniform distribution

2010-06-12 Thread Javier Montoya
On Jun 12, 2:09 pm, Steven D'Aprano wrote: > On Sat, 12 Jun 2010 03:05:43 -0700, Javier Montoya wrote: > > Dear all, > > > I need to generate a vector of random float numbers between [0,1] such > > that their sum equals 1 and that are distributed non-uniformly. Is there > > any python function tha

Re: non-uniform distribution

2010-06-12 Thread Javier Montoya
On Jun 12, 1:08 pm, Etienne Rousee wrote: > Le 12/06/2010 12:05, Javier Montoya a écrit : > > > I need to generate a vector of random float numbers between [0,1] such > > that their sum equals 1 and that are distributed non-uniformly. > > Is there any python function that generates such a vector?

Re: non-uniform distribution

2010-06-12 Thread Javier Montoya
On Jun 12, 1:08 pm, Etienne Rousee wrote: > Le 12/06/2010 12:05, Javier Montoya a écrit : > > > I need to generate a vector of random float numbers between [0,1] such > > that their sum equals 1 and that are distributed non-uniformly. > > Is there any python function that generates such a vector?

Re: non-uniform distribution

2010-06-12 Thread Steven D'Aprano
On Sat, 12 Jun 2010 03:05:43 -0700, Javier Montoya wrote: > Dear all, > > I need to generate a vector of random float numbers between [0,1] such > that their sum equals 1 and that are distributed non-uniformly. Is there > any python function that generates such a vector? You haven't explained yo

Re: non-uniform distribution

2010-06-12 Thread Etienne Rousee
Le 12/06/2010 12:05, Javier Montoya a écrit : > I need to generate a vector of random float numbers between [0,1] such > that their sum equals 1 and that are distributed non-uniformly. > Is there any python function that generates such a vector? Let f any function (injective is better). Let a1,...

non-uniform distribution

2010-06-12 Thread Javier Montoya
Dear all, I need to generate a vector of random float numbers between [0,1] such that their sum equals 1 and that are distributed non-uniformly. Is there any python function that generates such a vector? Best wishes -- http://mail.python.org/mailman/listinfo/python-list