smooth_godin.Rd
Apply a Godin filter to a vector of data.
smooth_godin(x, increment, kind = c("mean", "max", "min", "median"), ...)
x | A vector of values. |
---|---|
increment | A character string defining the expected time increment. this consists of two parts: a numeric value defining the size of the increment, and the units of the increment. Acceptable units are "secs", "mins", "hours", "days", or "weeks". |
kind | what values to filter. Default is the original Godin
filter which averages the data. Other options are to use the |
... | Additional arguments to |
A vector of same length as x.
The Godin filter is defined $$F = \frac{A_{24}^2}{24^2}\frac{A_{25}}{25}$$