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
On Mon, May 20, 2013 at 6:58 PM, Bakhtiyor Zokhidov
wrote:
> ok... I think -0.0 is mathematically wrong but in a program it is true.
>
> What I suspect is that if -0.0 doesn't affect on result (e.g., 2*(-0.0 + 2)
> or (-0.0-2)*2 ) . If it does not affect results it would be good for me
It doesn't
ok... I think -0.0 is mathematically wrong but in a program it is true.
What I suspect is that if -0.0 doesn't affect on result (e.g., 2*(-0.0 + 2) or
(-0.0-2)*2 ) . If it does not affect results it would be good for me
Thanks
Понедельник, 20 мая 2013, 9:03 -07:00 от Chris Barker - NOAA Federa
On Mon, May 20, 2013 at 8:54 AM, Bakhtiyor Zokhidov
wrote:
> what about the following example:
new_ceil(-0.24, 0.25)
> -0.0
ceil rounds toward +inf (and floor towards -inf) -- this is exactly
what you want if you're doing what I think you are...(note that
round() rounds towards and away from
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
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
On Mon, May 20, 2013 at 4:54 PM, Bakhtiyor Zokhidov
wrote:
> thanks a lot
>
> what about the following example:
new_ceil(-0.24, 0.25)
> -0.0
> ???
> thanks in advance for the reply
What about it? What were you expecting to get? What do you think is
wrong about the answer you did get?
--
Robe
thanks a lot
what about the following example:
>>>new_ceil(-0.24, 0.25)
-0.0
???
thanks in advance for the reply
Понедельник, 20 мая 2013, 16:37 +01:00 от Robert Kern :
>On Mon, May 20, 2013 at 4:21 PM, Bakhtiyor Zokhidov
>< bakhtiyor_zokhi...@mail.ru > wrote:
>> Hello,
>>
>> I am using ceil()
On Mon, May 20, 2013 at 4:21 PM, Bakhtiyor Zokhidov
wrote:
> Hello,
>
> I am using ceil() and floor() function to get upper and lower value of some
> numbers. Let's say:
>
> import math
> x1 = 0.35
> y1 = 4.46
math.ceil(x1)
> 1.0
>
math.floor(y1)
> 4.0
>
> The problem is that If I want t
On Mon, May 20, 2013 at 4:21 PM, Bakhtiyor Zokhidov
wrote:
> Hello,
>
> I am using ceil() and floor() function to get upper and lower value of some
> numbers. Let's say:
>
> import math
> x1 = 0.35
> y1 = 4.46
math.ceil(x1)
> 1.0
>
math.floor(y1)
> 4.0
>
> The problem is that If I want t
Hello,
I am using ceil() and floor() function to get upper and lower value of some
numbers. Let's say:
import math
x1 = 0.35
y1 = 4.46
>>> math.ceil(x1)
1.0
>>> math.floor(y1)
4.0
The problem is that If I want to get upper and lower values for the certain
step, for example, step = 0.25, ceil(
11 matches
Mail list logo