BLOCKAVG

Purpose:

Computes a non-overlapping block average of a series.

Syntax:

BLOCKAVG(series, N, rampflag)

series

-

Any series, table, or expression resulting in a series or table.

N

-

An integer, the points per block to average as the series is processed.

rampflag

-

Optional. An integer, endpoint averaging flag.

0:

down

1:

up (default)

Returns:

A series or table, the N point block average.

Example:

W1: 1..12

W2: blockavg(W1, 2)

 

returns the series {1.5, 3.5, 5.5, 7.5, 9.5, 11.5}

Example:

W3: 1..12

W4: blockavg(W3, 3)

 

returns the series {2, 5, 8, 11}

Remarks:

BLOCKAVG computes the N-point non-overlapping block average of a series by decimating the standard N-point moving average.  If the block size is not an integral fraction of the series length, the end points are not averaged.

 

See MOVAVG to compute an N-point moving average and a description of rampflag.

 

See BLOCKMEDIAN to compute the block median of a series.

See Also:

AVGFILT

BLOCKMAX

BLOCKMEDIAN

BLOCKMIN

BLOCKRMS

MOVAVG

MOVSTD