Interface SplitStrategy

    • Method Detail

      • findSplit

        SplitStrategy.Info findSplit​(Relation<? extends NumberVector> relation,
                                     int dims,
                                     ArrayModifiableDBIDs sorted,
                                     DBIDArrayMIter iter,
                                     int left,
                                     int right,
                                     VectorUtil.SortDBIDsBySingleDimension comp)
        Build the k-d-tree using midpoint splitting.
        Parameters:
        relation - data relation
        dims - data dimensionality
        sorted - modifiable array to encode the partitions
        iter - reusable iterator to the array
        left - left subinterval
        right - right subinterval
        comp - reusable comparator (bound to the relation above)
        Returns:
        split info, null if no good split