Interface PartitionFunction<DATA>
-
- Type Parameters:
DATA
- The type of the data on the sets.
- All Known Implementing Classes:
PartitionFunctions.BalancedPartition
public interface PartitionFunction<DATA>
An object with partitions a set of data into two sub-sets.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Pair<Set<DATA>>
process(Pair<DATA> promoted, Set<DATA> dataSet, DistanceFunction<? super DATA> distanceFunction)
Executes the partitioning.
-
-
-
Method Detail
-
process
Pair<Set<DATA>> process(Pair<DATA> promoted, Set<DATA> dataSet, DistanceFunction<? super DATA> distanceFunction)
Executes the partitioning.- Parameters:
promoted
- The pair of data objects that will guide the partition process.dataSet
- The original set of data objects to be partitioned.distanceFunction
- A distance function to be used on the partitioning.- Returns:
- A pair of partition sub-sets. Each sub-set must correspond to one
of the
promoted
data objects.
-
-