Add notch-like gaussian snippets to an existing signal x

Share:

Description

Add notch-like gaussian snippets to an existing signal x

Usage

1
add_notches(x, pos, sd = 0.01 * length(x), amplitude = 1)

Arguments

x

[1,N] numeric, Original data

pos

[1,m] integer, Positions to add notches to

sd

[1,1] numeric, (optional) Desired width of the Gaussian notch

amplitude

[1,1] numeric, (optional) Desired amplitude for the notches

Value

[1,N] numeric, Modified signal with notches

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.