Interface IPartitionFunction<T>

Type Parameters:
T - The type of the data on the sets.
All Known Implementing Classes:
BalancedPartitionFunction

public interface IPartitionFunction<T>
An object with partitions a set of data into two sub-sets.
Since:
2.0.0
Author:
Eduardo R. D'Avila
  • Method Summary

    Modifier and Type Method Description
    Pair<java.util.Set<T>> process​(Pair<T> promoted, java.util.Set<T> dataSet, IDistanceFunction<? super T> distanceFunction)
    Executes the partitioning.
  • Method Details

    • process

      Pair<java.util.Set<T>> process​(Pair<T> promoted, java.util.Set<T> dataSet, IDistanceFunction<? super T> 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.