Algorithm 2: NADCA-L algorithm. |
Given a sample i, U, a set of NM measures […], a set of K predictions […] and prediction errors […] for the set of measures […] and : 1. Calculate the set of differences PD using the NM measures. 2. Calculate using PM and PD. 3. Calculate and . 4. Calculate and using (4). 5. Calculate and 6. If and then “No anomaly” at i + 1. Save (, ) for the next iteration. Updating K ←K+1 allows the same IM to be used for the next iteration. 7. If then “fast-changing anomaly” at i + 1. Correct the anomaly at i + 1 changing to . Save (, ) for the next iteration. Updating K ←K+1 allows the same IM to be used for the next iteration. 8. If and then “slow-moving anomaly” at i + 1. Correct the anomaly at i + 1 changing to . Save (, ) for the next iteration. Updating K ←K+1 allows the same IM to be used for the next iteration. |