コード例 #1
0
 public virtual bool isOverlapped(Outlier other)
 {
   if (other == null)
     return false;
   else
     return other.overlaps(this.getAveragedOutlier());
 }
コード例 #2
0
 public OutlierList(Outlier outlier)
 {
   base.\u002Ector();
   OutlierList outlierList = this;
   this.multiple = false;
   this.outliers = (List) new ArrayList();
   this.setAveragedOutlier(outlier);
 }
コード例 #3
0
 public virtual bool add(Outlier outlier)
 {
   if (this.outlierLists.isEmpty())
   {
     return (this.outlierLists.add((object) new OutlierList(outlier)) ? 1 : 0) != 0;
   }
   else
   {
     int num = 0;
     Iterator iterator = this.outlierLists.iterator();
     while (iterator.hasNext())
     {
       OutlierList outlierList = (OutlierList) iterator.next();
       if (outlierList.isOverlapped(outlier))
         num = this.updateOutlierList(outlierList, outlier) ? 1 : 0;
     }
     if (num == 0)
       num = this.outlierLists.add((object) new OutlierList(outlier)) ? 1 : 0;
     return num != 0;
   }
 }
コード例 #4
0
 public virtual bool add(Outlier outlier)
 {
   return (this.outliers.add((object) outlier) ? 1 : 0) != 0;
 }
コード例 #5
0
 public virtual void setAveragedOutlier(Outlier averagedOutlier)
 {
   this.averagedOutlier = averagedOutlier;
 }
コード例 #6
0
ファイル: Outlier.cs プロジェクト: NALSS/SmartDashboard.NET
 public virtual bool overlaps(Outlier other)
 {
   return other.getX() >= this.getX() - this.radius * 1.1 && other.getX() <= this.getX() + this.radius * 1.1 && (other.getY() >= this.getY() - this.radius * 1.1 && other.getY() <= this.getY() + this.radius * 1.1);
 }