This operator learns the mean and the standard deviation of a single value and writes it into the output.
Parameters
Example
Code Block | ||
---|---|---|
| ||
#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
) |