[Numpy-discussion] sampling based on running sums

2008-06-27 Thread John Hunter
I would like to find the sample points where the running sum of some vector exceeds some threshold -- at those points I want to collect all the data in the vector since the last time the criteria was reached and compute some stats on it. For example, in python tot = 0. xs = [] ys =

Re: [Numpy-discussion] sampling based on running sums

2008-06-27 Thread Robert Kern
On Fri, Jun 27, 2008 at 15:06, John Hunter [EMAIL PROTECTED] wrote: I would like to find the sample points where the running sum of some vector All non-negative, right? exceeds some threshold -- at those points I want to collect all the data in the vector since the last time the criteria was