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

More function supports like fftfreq #138

Open
eweca-d opened this issue Apr 10, 2024 · 2 comments
Open

More function supports like fftfreq #138

eweca-d opened this issue Apr 10, 2024 · 2 comments

Comments

@eweca-d
Copy link

eweca-d commented Apr 10, 2024

Thank you for this great crate!
Do you have any plan to extend the functions like fftfreq and fftshift? It would be better to add more functions like what numpy.fft did. For example, the fftfreq can be helpful in the cases of drawing the frequency-amplitude curve. I have to write it everywhere if I need it right now. If it is approved, I can help to do it.

@ejmahler
Copy link
Owner

I've never heard of this. Do you have a link to a wikipedia article or some other resource I can check out?

@eweca-d
Copy link
Author

eweca-d commented Apr 11, 2024

I've never heard of this. Do you have a link to a wikipedia article or some other resource I can check out?

You can find the function in "https://numpy.org/doc/stable/reference/generated/numpy.fft.fftfreq.html" and its source Python code. It is very simply and just to generate the frequencies of "k/(N*T), k=0, 1, 2...N - 1" which is the sampled frequencies. It could be helpful to plot the frequency-amplitude figure.

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

No branches or pull requests

2 participants