Description Usage Arguments Details Value Examples
View source: R/LocalGaussFilter.R
This function takes a signal and applies moving means and SDs to it of a particular
window (n
). It then scales the data by subtracting from each point the average of the
previous values in the window and dividing by their SD. The absolute value is then taken and
a threshold (threshold
) is applied to determine the signal.
1 | LocalGaussFilter(x, n, threshold, robust = FALSE)
|
x |
A vector of numerical values |
n |
The width of the window to perform rolling calculations on |
threshold |
The threshold beyond which the normalized data is considered signal |
robust |
(not implemented) |
A robust option using rolling median and MAD is yet to be implemented
A new numerical vector of thresholded values
1 2 | x <- rnorm(1000000)
y <- LocalGaussFilter(x, n = 100, threshold = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.