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

FftShift #69

Closed
swharden opened this issue Jul 8, 2023 · 1 comment
Closed

FftShift #69

swharden opened this issue Jul 8, 2023 · 1 comment

Comments

@swharden
Copy link
Owner

swharden commented Jul 8, 2023

Spillover from research related to @MV10's question in #68, I think FftSharp would benefit from a FftShift helper function. Same goes for a function that generates negative frequencies to facilitate plotting.

image

Resources

@swharden
Copy link
Owner Author

import scipy.fft
import numpy as np

odd number

values = np.arange(7)
print(values)
print(scipy.fft.fftshift(values))
[0 1 2 3 4 5 6]
[4 5 6 0 1 2 3]

even number

values = np.arange(8)
print(values)
print(scipy.fft.fftshift(values))
[0 1 2 3 4 5 6 7]
[4 5 6 7 0 1 2 3]

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

1 participant