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])

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