Re: nonuniform sampling with replacement

2010-03-22 Thread Robert Kern
On 2010-03-21 05:11 AM, Jah_Alarm wrote: I've got a vector length n of integers (some of them are repeating), I recommend reducing it down to unique integers first. and I got a selection probability vector of the same length. How will I sample with replacement k (<=n) values with the probabil

Re: nonuniform sampling with replacement

2010-03-22 Thread Aram Ter-Sarkissov
On 22 мар, 01:27, Peter Otten <__pete...@web.de> wrote: > Jah_Alarm wrote: > > I've got a vector length n of integers (some of them are repeating), > > and I got a selection probability vector of the same length. How will > > I sample with replacement k (<=n) values with the probabilty vector. > >

Re: nonuniform sampling with replacement

2010-03-22 Thread Aram Ter-Sarkissov
On 22 мар, 01:28, "Alf P. Steinbach" wrote: > * Alf P. Steinbach: > > > > > * Jah_Alarm: > >> I've got a vector length n of integers (some of them are repeating), > >> and I got a selection probability vector of the same length. How will > >> I sample with replacement k (<=n) values with the proba

Re: nonuniform sampling with replacement

2010-03-21 Thread Alf P. Steinbach
* Alf P. Steinbach: * Jah_Alarm: I've got a vector length n of integers (some of them are repeating), and I got a selection probability vector of the same length. How will I sample with replacement k (<=n) values with the probabilty vector. In Matlab this function is randsample. I couldn't find

Re: nonuniform sampling with replacement

2010-03-21 Thread Peter Otten
Jah_Alarm wrote: > I've got a vector length n of integers (some of them are repeating), > and I got a selection probability vector of the same length. How will > I sample with replacement k (<=n) values with the probabilty vector. > In Matlab this function is randsample. I couldn't find anything t

Re: nonuniform sampling with replacement

2010-03-21 Thread Alf P. Steinbach
* Jah_Alarm: I've got a vector length n of integers (some of them are repeating), and I got a selection probability vector of the same length. How will I sample with replacement k (<=n) values with the probabilty vector. In Matlab this function is randsample. I couldn't find anything to this exte

nonuniform sampling with replacement

2010-03-21 Thread Jah_Alarm
I've got a vector length n of integers (some of them are repeating), and I got a selection probability vector of the same length. How will I sample with replacement k (<=n) values with the probabilty vector. In Matlab this function is randsample. I couldn't find anything to this extent in Scipy or