Hello,
I hope this is not a silly question ;-)
I have a Numpy array, and I want to process it with :
if the value is lower than Threshold, then increase by Threshold
I would like to translate it as:
y[yTreshold] = y + Treshold
To benefit from the Numpy speed.
But this doesn't work, any idea
On Mon, Oct 27, 2008 at 12:41:06PM +0100, Nicolas ROUX wrote:
Hello,
I hope this is not a silly question ;-)
I have a Numpy array, and I want to process it with :
if the value is lower than Threshold, then increase by Threshold
I would like to translate it as:
y[yTreshold] = y +
Le Monday 27 October 2008 12:41:06 Nicolas ROUX, vous avez écrit :
Hello,
I hope this is not a silly question ;-)
I have a Numpy array, and I want to process it with :
if the value is lower than Threshold, then increase by Threshold
I would like to translate it as:
y[yTreshold] = y +
Thanks for all of you,
for this fast and good reply ;-)
Nicolas.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Douard
Sent: Monday, October 27, 2008 12:51 PM
To: numpy-discussion@scipy.org
Subject: Re: [Numpy-discussion] How to do: y[yT] = y+T
: Re: [Numpy-discussion] How to do: y[yT] = y+T
Le Monday 27 October 2008 12:41:06 Nicolas ROUX, vous avez écrit :
Hello,
I hope this is not a silly question ;-)
I have a Numpy array, and I want to process it with :
if the value is lower than Threshold, then increase by Threshold
I would