RMS: Running median smoothing.

Description Usage Arguments Value Examples

View source: R/filters.R

Description

This function return the data smoothed using the running median algorithm. For each chunk of data of size equal to the buffer_size parameter is calculated the median and this value is used as the i term of the newly smoothed data. For initial and final values zero padding is applied.

Usage

1
RMS(raw_data, buffer_size = 5)

Arguments

raw_data

Data upon which the algorithm is applied

buffer_size

number of points the algorithm use to compute the median

Value

Smoothed data using running median algorithm

Examples

1
2
raw_data = c(1:100)
smoothed_data = RMS(raw_data)

Convolutioner documentation built on March 11, 2021, 5:07 p.m.