medianFilter | R Documentation |
1-dimensinal median filter with a specified windowSize
of the inputData
medianFilter(inputData, windowSize)
medianFilter(inputData = NULL, windowSize = 3)
inputData |
The vector of values to be filtered |
windowSize |
The half-size of the filtering window (default |
Classical implementation of a median filter, using a sliding window. By default, the half-size of the sliding window is set to 3 unless otherwise specified.
The output data has the same size of the input data. If the window half-size is smaller or equal to 1, then the input data is passed directly to the output data.
Adrian Andronache adi.andronache@gmail.com
Luca Agnelli luca.agnelli@gmail.com
x <- medianFilter(c(0, 0, 0, 1, 1, 1, 0, 0, 1, 0))
x <- medianFilter(c(0, 0, 0, 1, 0, 0, 0, 0, 1, 0), windowSize = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.