DADiSP Worksheet Functions > Function Categories > Statistics and Calculus > BLOCKMEDIAN
Computes a non-overlapping block median of a series.
BLOCKMEDIAN(series, N, rampflag)
series |
- |
A series or table. |
||||
N |
- |
An integer, the points per block to calculate the median as the series is processed. |
||||
rampflag |
- |
Optional. An integer, endpoint median flag.
|
A series or table, the N-point block median.
W1: 1..12
W2: blockmedian(W1, 3)
W3: blockmedian(W1, 4)
W2 == {2, 5, 8, 11}
W3 == {2.5, 6.5, 10.5}
W1: 1..12
W2: blockmedian(W1, 5)
W3: blockmedian(W1, 5, 0)
W2 == {3, 8, 11.5}
W3 == {3, 8, 0}
BLOCKMEDIAN computes the N-point non-overlapping block median of a series by decimating the standard N-point moving median.
If the block size is not an integer factor of the series length, the end point median calculation is determined by rampflag. If rampflag is 0, the data beyond the end point is assumed to be 0.0. If rampflag is 1, the default, the median calculation is adjusted for the number of points remaining in the current processing block.
See MOVMEDIAN for more details on rampflag.
For multi-column series, BLOCKMEDIAN computes the block median on each column.
See MEDIAN to compute the median of the entire series.
See BLOCKAVG to compute the block average of a series.