DADiSP Worksheet Functions > Function Categories > Fourier Transforms and Signal Processing > ENDFLIP

 

ENDFLIP

Purpose:

Pads the ends of a series with endpoint reflections.

Syntax:

ENDFLIP(series, padlen)

series

-

A series or table.

padlen

-

Optional. An integer, the length of segment with which to pad. Defaults to length(series) / 10.

Returns:

A series.

Example:

W1: integ(gnorm(1000,1/1000))

W2: endflip(W1, 200); overp(W1, lred)

 

The simulated data in W1 is padded at the beginning and end with segments of length 200 that are reflections of the beginning and end segments. The original data is overplotted to provide a comparison.

Remarks:

ENDFLIP is useful in FIR filtering operations where the input data is padded at the beginning and end to diminish the ramp up and ramp down transients implicit in the filtering process. The transients occur because the input data is assumed to be zero prior to the start and after the end of the data. See PADFILT and FPADFILT for more information.

See Also:

FILTEQ

FPADFILT

PADFILT

ZEROFLIP