Polybench® Reference
Short help remarks about the working of this operator

Smoothing

Overview

This operator filters the incoming vector over its own length, meaning that it will look at successive fields in the same vector. Filtering is done with a triangular or rectangular filter, depending on whether the property WindowWidth is even or odd.

If the window width is even, a rectangular filter is used; if it is odd, a triangular filter is used.

Operator ports

Input V_in: Specific sample type, see below.

Output V_out: Floating point value buffers

Properties

Find more information about changing properties here: "Properties Viewer"

WindowWidth
type: See description
The width of the filter window. An even value results in a rectangular filter. An odd value results in a triangular filter. This value must be positive.


Caption
type: Word or phrase
The name of the object in the project. This name must not contain '.', '$' nor '@' characters.

For more information about the rules and usage of the Caption property, please refer to "Caption property - background and usage".

Documentation
type: See description
Optional documentation of this object. If this object is an operator, the Documentation text is displayed below the operator symbol.

Variable Parameters

Find more information about Variable Parameters here: "Variable Parameters"

WindowWidth
type: See description
The width of the used window

Details

This block will filter the incoming vector over its own length. It will do that, if the window width is even, using a rectangular window (i.e. a moving average filter in the positive and negative direction).

If the window width is odd, it will use a triangular window (i.e. a weighted moving average filter in the positive and negative direction).

The begin and end of the vector will be handled with a special function.

- The variable property window width has to be above zero.
- Triangular filtering is used with an odd window width.
- Rectangular filtering is used with an even window width.
- Only the real party of the input vector will be smoothed, the imaginairy part will be discarded

Examples

Example: Smoot Example
This Smoothing Operator smoothes the filter over its own length. It does this using a moving average filter. The amount of filtering can be specified using the WindowWidth Property. If the WindowWidth is an even number, a square window is used, if the WindowWidth property is an odd number, a triangular window is used.
Examples\DF0600144_001_Smoothing_Exmp.xmc