movingMedian {eRTG3D} | R Documentation |

## Moving median in one dimension

### Description

Applies a twosided moving median window on a vector, where the window paramter is the total size of the window. The value in the window middle is the index where the median of the window is written. Therefore the window size has to be an uneven number. The border region of the vetor is filled with a one-sided median. There might be border effects.

### Usage

```
movingMedian(data, window)
```

### Arguments

`data` |
numeric vector |

`window` |
uneven number for the size of the moving window |

### Value

A numeric vector.

### Examples

```
movingMedian(sequence(1:10), window = 5)
```

[Package

*eRTG3D*version 0.7.0 Index]