Class LeastEnlargementInsertionStrategy
- java.lang.Object
-
- elki.index.tree.spatial.rstarvariants.strategies.insert.LeastEnlargementInsertionStrategy
-
- All Implemented Interfaces:
InsertionStrategy
@Reference(authors="A. Guttman", title="R-Trees: A Dynamic Index Structure For Spatial Searching", booktitle="Proc. 1984 ACM SIGMOD Int. Conf. on Management of Data", url="https://doi.org/10.1145/971697.602266", bibkey="doi:10.1145/971697.602266") public class LeastEnlargementInsertionStrategy extends java.lang.Object implements InsertionStrategy
The default R-Tree insertion strategy: find rectangle with least volume enlargement.Reference:
A. Guttman
R-Trees: A Dynamic Index Structure For Spatial Searching
Proc. 1984 ACM SIGMOD Int. Conf. Management of Data- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLeastEnlargementInsertionStrategy.ParParameterization class.
-
Field Summary
Fields Modifier and Type Field Description static LeastEnlargementInsertionStrategySTATICStatic instance.
-
Constructor Summary
Constructors Constructor Description LeastEnlargementInsertionStrategy()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A> intchoose(A options, ArrayAdapter<? extends SpatialComparable,A> getter, SpatialComparable obj, int height, int depth)Choose insertion rectangle.
-
-
-
Field Detail
-
STATIC
public static final LeastEnlargementInsertionStrategy STATIC
Static instance.
-
-
Method Detail
-
choose
public <A> int choose(A options, ArrayAdapter<? extends SpatialComparable,A> getter, SpatialComparable obj, int height, int depth)Description copied from interface:InsertionStrategyChoose insertion rectangle.- Specified by:
choosein interfaceInsertionStrategy- Parameters:
options- Options to choose fromgetter- Array adapter for optionsobj- Insertion objectheight- Tree heightdepth- Insertion depth (depth == height - 1 indicates leaf level)- Returns:
- Subtree index in array.
-
-