Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crossing point detection #10531

Closed
cristi-neagu opened this issue Feb 6, 2018 · 1 comment
Closed

Crossing point detection #10531

cristi-neagu opened this issue Feb 6, 2018 · 1 comment

Comments

@cristi-neagu
Copy link

Hello,

This is to suggest a new functionality added to numpy arrays. Mainly, rising and falling edge detection. I assume many people use numpy array for signal storage (i certainly am). In many instances an edge detection algorithm would be very useful.

This could be emulated on how oscilloscope triggers work, with a signal level being defined and a crossing direction. The return to this function would be similar to the return of the numpy.where() function.

Workarounds for the lack of this functionality are complicated and convoluted, and most of them fail when the trigger value is present in the array.

Thank you.

@WarrenWeckesser
Copy link
Member

@cristi-neagu, this issue has been untouched for a few years--sorry no one responded for so long!

This functionality sounds useful, but it is out of scope for NumPy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants