I am looking for a function to compute an exponential moving sum in numpy or scipy. I want to avoid using python loops because they are very slow.
I have two series A [] and T []. T [i] is the timestamp A [i]. I determine the half-life of tau. Over a given time t, the exponential moving sum is the sum of all values ββof A [i] that occur before t, with the weight exp (- (tT [i]) / tau) for each A [i].
Thanks a lot!
source share