...
The code belows shows an example with the windowChecking option. Here, some more special settings are used. The operator won't report the anomalies between the first and the last anomaly in an anomaly sequence. If you again take a look at the example figure above, the zeros between the "10"-tuples would not be reported with this options.
The DeviationLearn operator only learns the fist 100 tuples, because they are considered as normal.
Code Block | ||
---|---|---|
| ||
#PARSER PQL #RUNQUERY /// A tumbling window -> We will search for anomalies in a window windowOp = ELEMENTWINDOW({ size = 20, advance = 20 }, System.fridgeVibration ) /// Learn how the "normal" area looks like intervalLearn = DEVIATIONLEARN({ nameofparameter = 'vibration', trainingmode = 'TUPLE_BASED', tuplestolearn = 100 }, windowOp ) /// Checks, if the current window has an anomaly intervalDetect = DEVIATIONANOMALYDETECTION({ nameofparameter = 'vibration', interval = 3.0, windowchecking = 'true', onlyfirstanomaly = 'true', reportendofanomalies = 'true' }, 1:intervalLearn, 0:intervalLearn ) |
...