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

Suggestion: Add diff and zero-crossing rate algoritms for math #671

Closed
perdo-nober-rs opened this issue Feb 2, 2024 · 2 comments
Closed
Labels

Comments

@perdo-nober-rs
Copy link

Hello I work as audio engineer and often do audio process. I am interested in learning the Rust and would like to see some signal process algorithm. I see you already have fft, so maybe some simpler algo wouldn't hert. First off I'd suggest adding the "diff" of a vector, or y[n] = x[n] - x[n-1] in signal discrete time. As matlab documentation say:

If X is a vector of length m, then Y = diff(X) returns a vector of length m-1. The elements of Y are the differences between adjacent elements of X.

Y = [X(2)-X(1) X(3)-X(2) ... X(m)-X(m-1)]

Also I would like zero cross rate to be added too, This function shows a signal's tendency of changing sign, sort of like a derivative show rate of change. zero cross rate of vector to vector is implemented as Y = diff(sgn(x)) or similar. Thank for your attention.

Copy link

github-actions bot commented Mar 4, 2024

This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Mar 4, 2024
Copy link

Please ping one of the maintainers once you add more information and updates here. If this is not the case and you need some help, feel free to ask for help in our Gitter channel. Thank you for your contributions!

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

No branches or pull requests

1 participant