Class PromotionFunctions.RandomPromotion<DATA>
- java.lang.Object
-
- moa.clusterers.outliers.utils.mtree.PromotionFunctions.RandomPromotion<DATA>
-
- Type Parameters:
DATA
- The type of the data objects.
- All Implemented Interfaces:
PromotionFunction<DATA>
- Enclosing class:
- PromotionFunctions
public static class PromotionFunctions.RandomPromotion<DATA> extends Object implements PromotionFunction<DATA>
A promotion function object that randomly chooses ("promotes") two data objects.
-
-
Constructor Summary
Constructors Constructor Description RandomPromotion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pair<DATA>
process(Set<DATA> dataSet, DistanceFunction<? super DATA> distanceFunction)
Chooses (promotes) a pair of objects according to some criteria that is suitable for the application using the M-Tree.
-
-
-
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 interfacePromotionFunction<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.
-
-