Interface PromotionFunction<DATA>

  • Type Parameters:
    DATA - The type of the data objects.
    All Known Implementing Classes:
    PromotionFunctions.RandomPromotion

    public interface PromotionFunction<DATA>
    An object that chooses a pair from a set of data objects.
    • Method Detail

      • process

        Pair<DATA> process​(Set<DATA> dataSet,
                           DistanceFunction<? super DATA> distanceFunction)
        Chooses (promotes) a pair of objects according to some criteria that is suitable for the application using the M-Tree.
        Parameters:
        dataSet - The set of objects to choose a pair from.
        distanceFunction - A function that can be used for choosing the promoted objects.
        Returns:
        A pair of chosen objects.