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.Object
Position when scanning for steep areas- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ClusterOrder
co
Cluster orderprivate DBIDArrayIter
cur
Variable for accessing.(package private) int
index
Current positionprivate DBIDArrayIter
next
Variable for accessing.private FiniteProgress
prog
Progress for logging.
-
Constructor Summary
Constructors Constructor Description SteepScanPosition(ClusterOrder co)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getNextReachability()
Get current reachability.double
getReachability()
Get current reachability.boolean
hasNext()
Test whether there is a next value.void
next()
Advance to the next entryboolean
steepDown(double ixi)
Test for a steep down area.boolean
steepUp(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
-
-