View source: R/filter.intensity.R
filter.intensity | R Documentation |
filter.intensity
returns a vector/matrix of filtered time-series
filter.intensity(x, centered = TRUE, centred = centered, scaled = TRUE,
highpass = NULL, highpass.remove = TRUE,
lowpass = NULL, lowpass.remove = TRUE)
x |
A vector of time-series values |
centered |
Logical; if |
centred |
An alternative name for the |
scaled |
Logical; if |
highpass |
The minimum intensity value for the highpass filter (or NULL if there is no highpass filter) |
highpass.remove |
Logical; if |
lowpass |
The maximum intensity value for the lowpass filter (or NULL if there is no lowpass filter) |
lowpass.remove |
Logical; if |
This function filters a time-series based on its spectral intensity. The user inputs the time-series vector or matrix and specifies whether it is to be centered and/or scaled. Centering subtracts the sample mean of the vector prior to conversion into frequency space; this sets the intensity of the signal to zero at the zero frequency. Scaling scales the intensity so the that norm of the intensity vector is equal to the number of values in the time-series. The function then applies the specified highpass/lowpass filter and returns the filtered signals. By default, both the highpass and lowpass filters remove parts of the signal that do not meet the filter requirements; if preferred the filters can attenuate (rather than removing) these signals.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.