Description Usage Arguments Value See Also Examples

Given a filter order *P*, the output of applying a median filter to a
time series *X[t]* for *t=0, ..., N - 1* is

- P odd:
*Y[ k ]=median(X[ k - (P - 1) / 2, ..., k + (P - 1) / 2 ])*- P even:
*Y[ k ]=median(X[ k - P / 2, ..., k + P / 2 - 1 ])*

for *k=0, ..., N - 1*.
Thus, median filtering replaces the *kth*
value of the time series with the median of the time series
over an *P*-point window centered about point *k*.
In the case where a portion of the window exceeds the boundaries
of the time series, the values outside the boundaries are ignored in
the median value calculation.

1 | ```
medianFilter(x, order=2)
``` |

`x` |
a vector containing a uniformly-sampled real-valued time series. |

`order` |
the median filter order. This argument defines the
size of the windows over which the median values are calculated. The
filter order must be positive and less than twice the length of the
time series. Default: |

a vector containing the result and of the same length as the original time series.

1 2 3 4 5 6 7 8 9 10 |

```
Loading required package: splus2R
Loading required package: ifultools
```

fractal documentation built on May 30, 2017, 5:22 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.