Polybench® Reference
Indicates where the input vector has its highest/lowest value, where this value is located in the vector (mask) and what that value is.

Buffer Peak Detector

Overview

This operator determines where the highest or lowest value in the input buffer is, and what that value was. Whether the highest or lowest value will be detected, depends on the Type property.

The operator has two outputs. The first outputs a mask array with ones on the positions of the highest value, and the other will output a scalar with the highest value.

If there are more fields that have the highest value, all fields will be indicated by a one in the mask array.

Operator ports

Input V: Specific sample type, see below.

Output V_Mask: Floating point value buffers

Output S_Value: Floating point values

Properties

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

Type
type: Select from the list
Select the function of this operator: whether the operator should look for the highest or lowest value
Select one of those presets:
DetectTop
DetectBottom


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.

Details

Note that if the input sample is a mathematical vector, that only the Real values are evaluated (the Imaginary values are ignored).

Examples

Example: Peak Detector Example
The Peak Detector Operator has two outputs. The 'mask array' output contains a vector which has the same length as the input vector, but contains only zero's except for a 1 in the field that contained the highest value in the incoming vector. The value output contains the actual value of that peak, as a streaming sample.
Examples\DF0507015_001_Peak_Detector_Exmp.xmc