DADiSP Worksheet Functions > Function Categories > Statistics and Calculus > MEDFILT1
Performs median filtering on a series.
MEDFILT1(series, points)
series |
- |
A series or table. |
points |
- |
An integer, the number of points to calculate the median as the series is processed. |
A series or table.
W1: 1..5
W2: medfilt1(W1, 3)
W3: movmedian(W1, 3, 0)
W2 == {1, 2, 3, 4, 4}
W3 == {0, 1, 2, 3, 4, 4, 0}
MEDFILT1 computes a moving median similar to MOVMEDIAN where the beginning and end points of the series are assumed to be zero.
See MEDFILT to perform 2D median filtering on an array or image.
See MEDIAN to compute the median of the entire series.