Interface IPromotionFunction<T>

Type Parameters:
T - The type of the data objects.
All Known Implementing Classes:
RandomPromotionFunction

public interface IPromotionFunction<T>
An object that chooses a pair from a set of data objects.
Since:
2.0.0
Author:
Eduardo R. D'Avila
  • Method Summary

    Modifier and Type Method Description
    Pair<T> process​(java.util.Set<T> dataSet, IDistanceFunction<? super T> distanceFunction)
    Chooses (promotes) a pair of objects according to some criteria that is suitable for the application using the M-Tree.
  • Method Details

    • process

      Pair<T> process​(java.util.Set<T> dataSet, IDistanceFunction<? super T> 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.