BLOCKMEDIAN

Purpose:

Computes a non-overlapping block median of a series.

Syntax:

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.

0:

none

1:

up and down (default)

Returns:

A series or table, the N-point block median.

Example:

W1: 1..12

W2: blockmedian(W1, 3)

W3: blockmedian(W1, 4)

 

W2 == {2, 5, 8, 11}

W3 == {2.5, 6.5, 10.5}

Example:

W1: 1..12

W2: blockmedian(W1, 5)

W3: blockmedian(W1, 5, 0)

 

W2 == {3, 8, 11.5}

W3 == {3, 8, 0}

Remarks:

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.

See Also:

BLOCKAVG

BLOCKMAX

BLOCKMIN

BLOCKRMS

COLMEDIAN

DECIMATE

MEDFILT1

MEDIAN

MOVMEDIAN