Skip to content

Typo in mlab.cohere #10003

Closed
Closed
@duncanmmacleod

Description

@duncanmmacleod

There is a critical typo in mlab.cohere introduced by 1504540:

Pxx, f = psd(x, NFFT, Fs, detrend, window, noverlap, pad_to, sides,
scale_by_freq)
Pyy, f = psd(y, NFFT, Fs, detrend, window, noverlap, pad_to, sides,
scale_by_freq)
Pxy, f = csd(x, y, NFFT, Fs, detrend, window, noverlap, pad_to, sides,
scale_by_freq)
Cxy = np.abs(Pxy) ** 2 / (Pxx * Pxy)

There is a critical typo in mlab.cohere, the final line should read:

    Cxy = np.abs(Pxy) ** 2 / (Pxx * Pyy) 

[i.e. a single character change Pxy -> Pyy].

Metadata

Metadata

Assignees

No one assigned

    Labels

    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.status: confirmed bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions