View source: R/spectral-filter.R
filter_spectrum_gaussian | R Documentation |
Applies a Gaussian filter to a sparse spectrum.
filter_spectrum_gaussian(x, location, width = 50, base = 0, peak = 1, ...)
x |
Object to filter, passed to |
location |
Vector of locations for the Gaussians. |
width |
Vector of widths (i.e. SDs) for the Gaussians. If only one number is provided, this same number is used for all Gaussians. |
base |
(Numeric vector, default = 0) Baseline upon which the Gaussian sits. If this is set to 1, then partials outside the range of the Gaussian will be unaffected by the filter; if this is left at 0, then these partials will be removed. Can be vectorised. |
peak |
(Numeric vector, default = 0) Notional peak of the Gaussian. Can be vectorised. |
... |
Optional parameters passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.