Configure
Configure the algorithm.
Configuration options
- Use Bessel Correction: if the checkbox is activated, Bessel correction will be applied. In order to obtain an expectation-true result for random samples, this parameter must be activated. The parameter is only relevant for the calculation of the standard deviation.
The empirical standard deviation, without Bessel's correction

The empirical standard deviation, with Bessel's correction

- Threshold Reversal: threshold for identifying reversals. Reversals are only detected if their difference from the next reversal exceeds the value of Threshold Reversal.
Below are three examples of peak identification using the parameter Threshold Reversal.
(a) The value y3 is identified as a peak immediately after processing the value y4 because the difference between y3 and y4 is greater than Threshold Reversal.
(b) The value y3 is not identified as a peak because the difference between y3 and y4 is smaller than Threshold Reversal and the curve starts rising again after y4.
(c) The value y2 is identified as a peak after processing the value y5 because the difference between y2 and y5 exceeds Threshold Reversal. The value y2 cannot be identified as a peak beforehand because the difference between y2 and y3 (y4) is less than/equal to Threshold Reversal and it is not known whether the values will continue to decrease.

- Threshold Delta: threshold for identifying Delta maxima. Maxima of the absolute difference of two successive values (delta) are detected only if the difference between successive deltas exceeds Threshold Delta.
Below are three examples of identifying the Delta maxima with the parameter Threshold Delta . The upper diagrams show the original input signals, the lower ones the corresponding delta.
(a) The value y4 is identified as a maximum after processing the value y5 because the difference between the two deltas exceeds Threshold Delta.
(b) No maximum is identified because the difference between the deltas is less than Threshold Delta.
(c) The value y3 is identified as a maximum after processing the value y6.

![]() | Regardless of Threshold Delta, at least one maximum of the Delta between two reversals is detected. |
Syntax
Definition:
METHOD Configure : BOOL
VAR_INPUT
bUseBesselCorrection : BOOL;
fThresholdReversal : LREAL;
fThresholdDelta : LREAL;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
bUseBesselCorrection | BOOL | Use of the Bessel correction (see above). |
fThresholdReversal | LREAL | Threshold for identifying reversals (see above). |
fThresholdDelta | LREAL | Threshold for identifying Delta maxima (see above). |
Return value
Name | Type | Description |
---|---|---|
Configure | BOOL | Returns |