Re: [Numpy-discussion] another indexing question

2013-05-20 Thread Bago
You could also try using bincount, (np.bincount(x, y.real) + 1j*np.bincount(x, y.imag)) / np.bincount(x) Bago On Mon, May 20, 2013 at 9:03 AM, Robert Kern wrote: > On Mon, May 20, 2013 at 5:00 PM, Neal Becker wrote: > > I have a system that transmits signals for an alphabet of M symbols > > o

Re: [Numpy-discussion] another indexing question

2013-05-20 Thread Robert Kern
On Mon, May 20, 2013 at 5:00 PM, Neal Becker wrote: > I have a system that transmits signals for an alphabet of M symbols > over and additive Gaussian noise channel. The receiver has a > 1-d array of complex received values. I'd like to find the means > of the received values according to the sy

[Numpy-discussion] another indexing question

2013-05-20 Thread Neal Becker
I have a system that transmits signals for an alphabet of M symbols over and additive Gaussian noise channel. The receiver has a 1-d array of complex received values. I'd like to find the means of the received values according to the symbol that was transmitted. So transmit symbol indexes might