Class PromotionFunctions.RandomPromotion<DATA>

    • Constructor Detail

      • RandomPromotion

        public RandomPromotion()
    • Method Detail

      • process

        public Pair<DATA> process​(Set<DATA> dataSet,
                                  DistanceFunction<? super DATA> distanceFunction)
        Description copied from interface: PromotionFunction
        Chooses (promotes) a pair of objects according to some criteria that is suitable for the application using the M-Tree.
        Specified by:
        process in interface PromotionFunction<DATA>
        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.