DetectExtremesOptions

NI Vision for LabWindows/CVI Function

DetectExtremesOptions

Describes how a function calculates extremes.

Elements

Name

Type

Description

threshold double Defines which extremes are too small. The function rejects any peak with a fitted amplitude that is less than threshold. The function ignores valleys if the fitted trough is greater than threshold.
width int Specifies the number of consecutive data points the function uses in the quadratic least-squares fit. width must be greater than or equal to 3 but should be no larger than one-fourth of the approximate width of the peaks or valleys. Setting width to a large value can reduce the apparent amplitude of peaks and shift the apparent location. The less noise your data has, the smaller the value you can choose.