public virtual bool isOverlapped(Outlier other) { if (other == null) return false; else return other.overlaps(this.getAveragedOutlier()); }
public OutlierList(Outlier outlier) { base.\u002Ector(); OutlierList outlierList = this; this.multiple = false; this.outliers = (List) new ArrayList(); this.setAveragedOutlier(outlier); }
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; } }
public virtual bool add(Outlier outlier) { return (this.outliers.add((object) outlier) ? 1 : 0) != 0; }
public virtual void setAveragedOutlier(Outlier averagedOutlier) { this.averagedOutlier = averagedOutlier; }
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); }