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
-
Constructor Details
-
RandomPromotionFunction
public RandomPromotionFunction()
-
-
Method Details
-
process
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 interfaceIPromotionFunction<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.
-