filter_spectrum: Filter spectrum

View source: R/spectral-filter.R

filter_spectrumR Documentation

Filter spectrum

Description

Filters a sparse spectrum using a user-provided function.

Usage

filter_spectrum(x, fun, ...)

Arguments

x

Object to filter, passed to sparse_fr_spectrum.

fun

Function to apply. The input should be a vector of frequencies, the output should be a vector of envelope amplitudes for those frequencies. The spectral amplitudes will be multiplied by the outputs of this function for each frequency.

...

Optional parameters passed to sparse_fr_spectrum.


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