public class OutlierListCollection
extends java.lang.Object
OutlierList| Modifier and Type | Field and Description |
|---|---|
private boolean |
highFarOut
Unbelievably, outliers which are more than 2 * interquartile range are
called far outs...
|
private boolean |
lowFarOut
A flag that indicates whether or not the collection contains low far
out values.
|
private java.util.List |
outlierLists
Storage for the outlier lists.
|
| Constructor and Description |
|---|
OutlierListCollection()
Creates a new empty collection.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Outlier outlier)
Appends the specified element as a new
OutlierList to the
end of this list if it does not overlap an outlier in an existing list. |
boolean |
isHighFarOut()
A flag to indicate the presence of one or more far out values at the
top end of the range.
|
boolean |
isLowFarOut()
A flag to indicate the presence of one or more far out values at the
bottom end of the range.
|
java.util.Iterator |
iterator()
Returns an iterator for the outlier lists.
|
void |
setHighFarOut(boolean farOut)
Sets the flag that indicates the presence of one or more far out values
at the top end of the range.
|
void |
setLowFarOut(boolean farOut)
Sets the flag that indicates the presence of one or more far out values
at the bottom end of the range.
|
private boolean |
updateOutlierList(OutlierList list,
Outlier outlier)
Updates the outlier list by adding the outlier to the end of the list and
setting the averaged outlier to the average x and y coordinnate values
of the outliers in the list.
|
private java.util.List outlierLists
private boolean highFarOut
private boolean lowFarOut
public OutlierListCollection()
public boolean isHighFarOut()
boolean.public void setHighFarOut(boolean farOut)
farOut - the flag.public boolean isLowFarOut()
boolean.public void setLowFarOut(boolean farOut)
farOut - the flag.public boolean add(Outlier outlier)
OutlierList to the
end of this list if it does not overlap an outlier in an existing list.
If it does overlap, it is appended to the outlier list which it overlaps
and that list is updated.outlier - element to be appended to this list.public java.util.Iterator iterator()
private boolean updateOutlierList(OutlierList list, Outlier outlier)
list - the outlier list to be updated.outlier - the outlier to be added