movingMedian: Moving median in one dimension

View source: R/wrapper3D.R

movingMedianR 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)

eRTG3D documentation built on March 18, 2022, 6:11 p.m.