6432d83fc96f607d48117681c9de71ce7e7ba8ec,neurodsp/sim/combined.py,,sim_noisy_oscillation,#,11

Before Change



    // Normalize by variance
    oscillation_var = np.var(oscillation)
    noise_var = np.var(noise)
    noise = np.sqrt(noise**2 * oscillation_var /
                    (noise_var * ratio_osc_var)) * np.sign(noise)

    // Combine oscillation and noise

After Change


    oscillation = sim_oscillation(n_seconds, fs, freq, rdsym=rdsym)

    // Normalize & combine signal
    oscillation, noise = normalize_by_variance(oscillation, noise, ratio_osc_var)
    osc = oscillation + noise

    return osc
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: neurodsp-tools/neurodsp
Commit Name: 6432d83fc96f607d48117681c9de71ce7e7ba8ec
Time: 2019-03-17
Author: tdonoghue@ucsd.edu
File Name: neurodsp/sim/combined.py
Class Name:
Method Name: sim_noisy_oscillation


Project Name: PIQuIL/QuCumber
Commit Name: bc8dbb9fa560f3ff5334517e07e1a492b0489e74
Time: 2020-09-07
Author: emerali@users.noreply.github.com
File Name: qucumber/observables/observable.py
Class Name: ObservableBase
Method Name: statistics_from_samples


Project Name: neurodsp-tools/neurodsp
Commit Name: 6432d83fc96f607d48117681c9de71ce7e7ba8ec
Time: 2019-03-17
Author: tdonoghue@ucsd.edu
File Name: neurodsp/sim/combined.py
Class Name:
Method Name: sim_noisy_bursty_oscillation