medianFilter: Apply a median filter to a matrix

Description Usage Arguments Value Author(s) Examples

Description

For each element in a matix, replace it with the median of the values around it.

Usage

1
medianFilter(x, mrad, nrad)

Arguments

x

numeric matrix to median filter

mrad

number of rows on either side of the value to use for median calculation

nrad

number of rows on either side of the value to use for median calculation

Value

A matrix whose values have been median filtered

Author(s)

Colin A. Smith, csmith@scripps.edu

Examples

1
2
3
mat <- matrix(1:25, nrow=5)
mat
medianFilter(mat, 1, 1)

benjiec/xcms documentation built on May 12, 2019, 11:57 a.m.