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

Remove phase for FFT normalizations 'power' and 'psd' #557

Merged
merged 3 commits into from Apr 12, 2024

Conversation

sikersten
Copy link
Member

@sikersten sikersten commented Mar 12, 2024

Which issue(s) are closed by this pull request?

Closes #553: Contrary to their definitions, FFT normalizations 'power' and 'psd' retained the phase of the signal. I think its a leftover from before the 'signal.freq_raw' property was introduced in 0.4.0 (PR #274), when retaining the phase was required to correctly calculate the inverse.

Changes proposed in this pull request:

  • Changed squaring operation from spec*np.abs(spec) to np.abs(spec)**2
  • Updated tests

@sikersten sikersten added enhancement For suggesting enhancements of current functionality dsp fft labels Mar 12, 2024
@sikersten sikersten self-assigned this Mar 12, 2024
@github-actions github-actions bot added this to In progress in Code Backlog Mar 12, 2024
Code Backlog automation moved this from In progress to Reviewer approved Mar 22, 2024
@f-brinkmann f-brinkmann merged commit c6bbd9a into develop Apr 12, 2024
8 checks passed
Code Backlog automation moved this from Reviewer approved to Done Apr 12, 2024
@f-brinkmann f-brinkmann deleted the enhancement/update_fft_power_norms branch April 12, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dsp enhancement For suggesting enhancements of current functionality fft
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants