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

FFTfreq: fix off-by-one error #50

Merged
merged 13 commits into from
Jun 16, 2022
Merged

FFTfreq: fix off-by-one error #50

merged 13 commits into from
Jun 16, 2022

Conversation

arthurits
Copy link
Contributor

Resolves issue #49 with these modifications:

  • Adds a FFTfreq overload accepting the signal array and computes its length.
  • Modifies FFTfreq by subtracting -1 to the pointCount parameter.
  • Adds XML documentation to both functions.

ToDo: test the suggested modifications using Python.

@swharden swharden changed the title Off-by-one error in FFTfreq FFTfreq: improve documentation and add overload Jun 16, 2022
@swharden swharden changed the title FFTfreq: improve documentation and add overload FFTfreq: fix off-by-one error Jun 16, 2022
@swharden swharden linked an issue Jun 16, 2022 that may be closed by this pull request
@swharden swharden merged commit 77c56f3 into swharden:main Jun 16, 2022
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

Successfully merging this pull request may close these issues.

FFTfreq: possible off-by-one error for one-sided FFTs
2 participants