[Numpy-discussion] how to do this efficiently?

josef.pktd at gmail.com josef.pktd at gmail.com
Wed Feb 9 13:00:49 EST 2011

On Wed, Feb 9, 2011 at 11:25 AM, Zachary Pincus <zachary.pincus at yale.edu> wrote:
>>> This assumes monotonicity. Is that allowed?
>> The twice-stated problem was:
> [Note to avert email-miscommunications] BTW, I wasn't trying to snipe
> at you with that comment, Josef...
> I just meant to say that this solution solves the problem as Neal
> posed it, though that might not be the exact problem he has.

>> In a 1-d array, find the first point where all subsequent points have values
>> less than a threshold.

This doesn't imply monotonicity.
Suppose with have a sin curve, and I want to find the last trough. Or
a business cycle and I want to find the last recession.

Unless my english deteriorated recently.



> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

More information about the NumPy-Discussion mailing list