[SciPy-user] Zero crossings

Sturla Molden sturla@molden...
Fri Feb 6 15:13:46 CST 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