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 java.lang.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 Summary

    Constructors 
    Constructor Description
    RandomPromotionFunction()  
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • process

      public Pair<T> process​(java.util.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.