Exemple #1
0
 public void UpdateAnomaly(List <AnomalyReport> ar, Point p, correlatedFeatures cor, int timeStepIndex, string f1, string f2)
 {
     if (AnomalyDetectionUtil.Dev(p, cor.LineReg) > cor.Threshhold)
     {
         string        desc  = f1 + "-" + f2;
         long          timeS = timeStepIndex + 1;
         AnomalyReport rep   = new AnomalyReport(desc, timeS);
         ar.Add(rep);
     }
 }
Exemple #2
0
 public void UpdateAnomaly(List <AnomalyReport> reportList, Point p, correlatedFeatures corF, int timeStepIndex, string f1, string f2)
 {
     // in case the correlated features are fulfill the condition of the parent class
     if (corF.Correlation >= maxC)
     {
         base.UpdateAnomaly(reportList, p, corF, timeStepIndex, f1, f2);
     }
     else
     {
         Circle    minCircle     = new Circle(new Point(corF.CX, corF.CY), corF.Threshhold);
         MinCircle minHelperCirc = new MinCircle();
         if (!minHelperCirc.isPointInsideCircle(p, minCircle))
         {
             // we will report as anomaly
             string        descr = f1 + "-" + f2;
             long          timeS = timeStepIndex + 1;
             AnomalyReport rep   = new AnomalyReport(descr, timeS);
             reportList.Add(rep);
         }
     }
 }