[SciPy-user] Zero crossings

Sturla Molden sturla at molden.no
Fri Feb 6 16:13:46 EST 2009


On 2/6/2009 9:59 PM, Christopher Brown wrote:
> Hi List,
> 
> What's the best way to find all zero crossings in my data? Is there 
> something already written in scipy?
> 


zc = numpy.where(numpy.sign(a[1:]) != numpy.sign(a[:-1]))

... or something like that.


Sturla Molden



More information about the SciPy-User mailing list