Package elki.clustering.optics
Class OPTICSXi.SteepScanPosition
- java.lang.Object
-
- elki.clustering.optics.OPTICSXi.SteepScanPosition
-
- Enclosing class:
- OPTICSXi
private static class OPTICSXi.SteepScanPosition extends java.lang.ObjectPosition when scanning for steep areas- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ClusterOrdercoCluster orderprivate DBIDArrayItercurVariable for accessing.(package private) intindexCurrent positionprivate DBIDArrayIternextVariable for accessing.private FiniteProgressprogProgress for logging.
-
Constructor Summary
Constructors Constructor Description SteepScanPosition(ClusterOrder co)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetNextReachability()Get current reachability.doublegetReachability()Get current reachability.booleanhasNext()Test whether there is a next value.voidnext()Advance to the next entrybooleansteepDown(double ixi)Test for a steep down area.booleansteepUp(double ixi)Test for a steep up point.
-
-
-
Field Detail
-
co
ClusterOrder co
Cluster order
-
index
int index
Current position
-
cur
private DBIDArrayIter cur
Variable for accessing.
-
next
private DBIDArrayIter next
Variable for accessing.
-
prog
private FiniteProgress prog
Progress for logging.
-
-
Constructor Detail
-
SteepScanPosition
public SteepScanPosition(ClusterOrder co)
Constructor.- Parameters:
co- Cluster order
-
-
Method Detail
-
next
public void next()
Advance to the next entry
-
hasNext
public boolean hasNext()
Test whether there is a next value.- Returns:
- end of cluster order
-
steepUp
public boolean steepUp(double ixi)
Test for a steep up point.- Parameters:
ixi- steepness factor (1-xi)- Returns:
- truth value
-
steepDown
public boolean steepDown(double ixi)
Test for a steep down area.- Parameters:
ixi- Steepness factor (1-xi)- Returns:
- truth value
-
getReachability
public double getReachability()
Get current reachability.- Returns:
- Reachability
-
getNextReachability
public double getNextReachability()
Get current reachability.- Returns:
- Reachability
-
-