2316c97ac2be8ec37b74d80982b2ffc832b491ad,neurodsp/timefrequency.py,,amp_by_time,#Any#Any#Any#Any#Any#Any#,59

Before Change


    if hilbert_increase_N:
        // If desired, pad the signal to length next power of two.
        N = len(x_filt)
        N2 = 2**(int(math.log(len(x), 2)) + 1)
        amp = np.abs(sp.signal.hilbert(x_filt, N2))
    else:
        amp = np.abs(sp.signal.hilbert(x_filt))
    return amp

After Change


    // Filter signal
    x_filt = filter_fn(x, Fs, "bandpass", f_lo=f_range[0], f_hi=f_range[1], remove_edge_artifacts=False, **filter_kwargs)
    // Compute amplitude time series
    amp = np.abs(_hilbert_ignore_nan(x_filt, hilbert_increase_N=hilbert_increase_N))
    return amp


def freq_by_time(x, Fs, f_range):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: neurodsp-tools/neurodsp
Commit Name: 2316c97ac2be8ec37b74d80982b2ffc832b491ad
Time: 2017-09-01
Author: scott.cole0@gmail.com
File Name: neurodsp/timefrequency.py
Class Name:
Method Name: amp_by_time


Project Name: matplotlib/matplotlib
Commit Name: 7ad4996b6106e601ed7136c11e17abbb149ef889
Time: 2019-04-27
Author: nelle.varoquaux@gmail.com
File Name: examples/lines_bars_and_markers/scatter_hist.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: eaa7025a37930ddfac810721c14452548db87ebc
Time: 2019-04-26
Author: 2836374+timhoffm@users.noreply.github.com
File Name: examples/lines_bars_and_markers/scatter_hist.py
Class Name:
Method Name: