[Numpy-discussion] how to do this efficiently?
Wed Feb 9 12:00:49 CST 2011
On Wed, Feb 9, 2011 at 11:25 AM, Zachary Pincus <email@example.com> 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
More information about the NumPy-Discussion