filter_spectrum_gaussian: Gaussian filter

View source: R/spectral-filter.R

filter_spectrum_gaussianR Documentation

Gaussian filter

Description

Applies a Gaussian filter to a sparse spectrum.

Usage

filter_spectrum_gaussian(x, location, width = 50, base = 0, peak = 1, ...)

Arguments

x

Object to filter, passed to sparse_fr_spectrum.

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 sparse_fr_spectrum.


pmcharrison/hrep documentation built on Feb. 18, 2024, 2:33 a.m.