Skip to content

reworking the FFT in power_spectrum #2

@skewballfox

Description

@skewballfox

Okay, so I've been tackling translating this this morning, and I realized that translation for this part is going to be a bit more complicated. np.fft.rfft doesn't stand for reverse, it's an fft calculated for real input and outputs complex numbers(see the docs). for more information on the difference between np.fft.fft and np.fft.rfft please see this stack overflow question

there are only two crates that handle this:

  1. realfft
  2. ndrustfft

also, it seems that the ffts from numpy normalize a portion of the returned matrixes, where the third argument (norm=None) is actually indicating that it should use the default normalization option(backward) that appears to be distinct from an inverse fft(see the list real ffts).

ndrustfft may be a better fit here, but I'm still trying to figure out if it has options for normalization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions