From 750943c813ac833a6c40ff0717d09f2fe86f1eb4 Mon Sep 17 00:00:00 2001 From: niva-sag <164054563+niva-sag@users.noreply.github.com> Date: Mon, 29 Apr 2024 08:51:34 +0200 Subject: [PATCH] Update BasicAnomalyDetection.mon Making sure the parameters are available for input --- repository/blocks/BasicAnomalyDetection.mon | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repository/blocks/BasicAnomalyDetection.mon b/repository/blocks/BasicAnomalyDetection.mon index 4ac97e0..e5a83e5 100644 --- a/repository/blocks/BasicAnomalyDetection.mon +++ b/repository/blocks/BasicAnomalyDetection.mon @@ -14,7 +14,7 @@ using com.apama.util.AnyExtractor; /** The parameters for the Anomaly Detection block. */ -event AnomalyDetection_$Parameters{ +event BasicAnomalyDetection_$Parameters{ /** * Alpha (smoothing factor). @@ -40,7 +40,7 @@ event AnomalyDetection_$Parameters{ } /** State of the block.*/ -event AnomalyDetection_$State{ +event BasicAnomalyDetection_$State{ float lastValue; float variance; float mean; @@ -68,7 +68,7 @@ event BasicAnomalyDetection { BlockBase $base; /** Parameters, filled in by the framework. */ - AnomalyDetection_$Parameters $parameters; + BasicAnomalyDetection_$Parameters $parameters; float alpha; float numStdDevs; @@ -83,7 +83,7 @@ event BasicAnomalyDetection { * This action receives the input values and contains the logic of the block. * * It takes in 1 float which represents the signal value - + * * @param $activation The current activation, contextual information required when generating a block output. Blocks should only use the * Activation object passed to them from the framework, never creating their own or holding on to an Activation object. * @param $input_value input signal for anomaly detection.