Description Usage Arguments Value See Also Examples
A triangular Filter for smoothing data
The filter will take a weighted average of a specified number of points around the point of interest to create a smoother time series. For example, if the size of the filter is set to 31, the filter will take the 15 points before and after the point of interest (for a total of 31 points), and calculate a weighted average based on how far away the points are from the point of interest.
1 |
x |
RasterBrick or TimeSeries |
y |
Size of Filter |
RasterBrick or TimeSeries of Yearly data
1 2 | # using RasterBricks or a Time Series
r<-bartlett_noise_filter(x, 31)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.