This operator searches for anomalies on the base of the standard-deviation. First input port: data, second input port: deviation information. The operator uses the deviation information from the DeviationLearn operator and compares the value of the tuple to the last learned deviation information without this tuple. If the value of the tuple is out of the normal range around the mean, the tuple is considered as an anomaly.
#PARSER PQL #ADDQUERY /// Use the online training mode to learn the mean and the standard deviation deviationLearner = DEVIATIONLEARN({ trainingmode = 'ONLINE', nameofparameter = 'temp' }, System.manual ) /// Compare the current tuple with the learned values deviationAnalysis = DEVIATIONANOMALYDETECTION({ interval = 3.0, nameofparameter = 'temp' }, 1:deviationLearner, 0:deviationLearner ) |