1ba97b6b8dcd4169d87e3510ae0e99723a6a4a86,neurodsp/spectral.py,,compute_spectrum,#Any#Any#Any#Any#Any#Any#Any#Any#Any#,9

Before Change


    if method in ("mean", "median"):

        // welch-style spectrum (mean/median of STFT)
        if nperseg is None:
            if isinstance(window, (str, tuple)):
                // window is a string or tuple, defaults to 1 second of data
                nperseg = int(fs)
            else:
                // window is an array, defaults to window length
                nperseg = len(window)
        else:
            nperseg = int(nperseg)

        if noverlap is not None:
            noverlap = int(noverlap)

        // Calculate the short time fourier transform with signal.spectrogram
        freqs, t_axis, spg = signal.spectrogram(sig, fs, window, nperseg, noverlap)

        // Pad data to 2D
        if len(sig.shape) == 1:

After Change


    if method in ("mean", "median"):

        // Calculate the short time fourier transform with signal.spectrogram
        nperseg, noverlap = _check_settings(fs, window, nperseg, noverlap)
        freqs, t_axis, spg = signal.spectrogram(sig, fs, window, nperseg, noverlap)

        // Pad data to 2D
        if len(sig.shape) == 1:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 19

Instances


Project Name: neurodsp-tools/neurodsp
Commit Name: 1ba97b6b8dcd4169d87e3510ae0e99723a6a4a86
Time: 2019-02-27
Author: tdonoghue@ucsd.edu
File Name: neurodsp/spectral.py
Class Name:
Method Name: compute_spectrum


Project Name: neurodsp-tools/neurodsp
Commit Name: 1ba97b6b8dcd4169d87e3510ae0e99723a6a4a86
Time: 2019-02-27
Author: tdonoghue@ucsd.edu
File Name: neurodsp/spectral.py
Class Name:
Method Name: spectral_hist


Project Name: neurodsp-tools/neurodsp
Commit Name: 1ba97b6b8dcd4169d87e3510ae0e99723a6a4a86
Time: 2019-02-27
Author: tdonoghue@ucsd.edu
File Name: neurodsp/spectral.py
Class Name:
Method Name: compute_scv_rs