function boxcar

Computes a running boxcar with radius WIDTH. By default, the value is replaces by the average in the box. This can be changed by specifying one of the switches /minimum, /maximum, or /median.

Syntax
result = boxcar(X, WIDTH [, /minimum | /maximum | /median] [,/x | /y | /z | /xy])

Arguments
X:   A matrix.
WIDTH:   An integer number specifying the radius of the box.


Switches
/minimum:   Each value is replaced with the minimum within a box with radius WIDTH
/maximum:   Each value is replaced with the maximum within a box with radius WIDTH
/median:   Each value is replaced with the median within a box with radius WIDTH
/x:   Boxcar along the first axis
/y:   Boxcar along the second axis
/z:   Boxcar along the third axis
/xy:   2D boxcar along the first and second axes (default)


See also
function smooth