Class RandomPromotionFunction<T>

java.lang.Object
kieker.analysis.generic.clustering.mtree.RandomPromotionFunction<T>
Type Parameters:
T - The type of the data objects.
All Implemented Interfaces:
IPromotionFunction<T>

public class RandomPromotionFunction<T> extends Object implements IPromotionFunction<T>
A promotion function object that randomly chooses ("promotes") two data objects.
Since:
2.0.0
Author:
Eduardo R. D'Avila
  • Constructor Details

    • RandomPromotionFunction

      public RandomPromotionFunction()
  • Method Details

    • process

      public Pair<T> process(Set<T> dataSet, IDistanceFunction<? super T> distanceFunction)
      Description copied from interface: IPromotionFunction
      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 IPromotionFunction<T>
      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.