Skip to content

Use scipy.signal.correlate #4

Description

@ahwillia

A small suggestion I have is to simplify the fft calls where possible. For example you should be able to replace the following line:

xcorr_raw_this = np.fft.fftshift(np.real(np.fft.ifft(Xcorr_raw_this_padded)))

With a simpler call to scipy.signal.correlate. Note that you can use method='fft' to force this function to compute the cross-correlation in the frequency domain. By default, method='auto' will take a good guess for which method is faster.

I'm not sure you'll see big performance gains, but its possible.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions