Use statistical methods to predict whether an anomaly occurs in an image
- Last UpdatedFeb 12, 2024
- 2 minute read
Use a Statistical Prediction block to predict an anomaly by using statistical methods. That is, the block uses the output from a Measurement block to determine whether an anomaly occurs.
To use a statistical method to predict an anomaly
-
On the Block Definitions toolbar, select Prediction.
The Prediction list expands.
-
Drag a Statistical Prediction block onto the Canvas.

-
Connect the output port from a Measurement block to the input port of the Statistical Prediction block.
-
Select the Statistical Prediction block on the Canvas.
-
Right-click the block, and then select Properties.

The Properties side sheet appears on the right side of the screen.

-
In the Threshold value box, enter the absolute value for the threshold at which the anomaly occurs.
If the absolute difference between the measured value and the mean measurement value is greater than the threshold, the anomaly is detected.
-
In the Deviation box, enter the standard deviation for the statistical model.
-
Select Apply Changes.
The preview result value for the block updates on the Canvas. The preview value is the R value of the statistical prediction.