Re: numpy: frequencies

2006-11-18 Thread Tim Hochberg
Filip Wasilewski wrote: > robert wrote: >> I have an integer array with values limited to range(a,b) like: >> >> ia=array([1,2,3,3,3,4,...2,0,1]) >> >> and want to speedly count the frequencies of the integers into get a density >> matrix. >> Is this possible without looping? > > See numpy.bincou

Re: numpy: frequencies

2006-11-18 Thread Filip Wasilewski
robert wrote: > I have an integer array with values limited to range(a,b) like: > > ia=array([1,2,3,3,3,4,...2,0,1]) > > and want to speedly count the frequencies of the integers into get a density > matrix. > Is this possible without looping? See numpy.bincount (for integers >= 0) if you mean 'w

numpy: frequencies

2006-11-18 Thread robert
I have an integer array with values limited to range(a,b) like: ia=array([1,2,3,3,3,4,...2,0,1]) and want to speedly count the frequencies of the integers into get a density matrix. Is this possible without looping? Question 2: is it possible to compute a "moving maximum" without python loopin