Interface Clustering


public interface Clustering
Clustering utility functions.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    Iterative clustering algorithm hyperparameters.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Cluster label for outliers or noises.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static <T extends Comparable<? super T>>
    T
    run(int runs, Supplier<T> clustering)
    Runs a clustering algorithm multiple times and return the best one (e.g.
  • Field Details

    • OUTLIER

      static final int OUTLIER
      Cluster label for outliers or noises.
      See Also:
  • Method Details

    • run

      static <T extends Comparable<? super T>> T run(int runs, Supplier<T> clustering)
      Runs a clustering algorithm multiple times and return the best one (e.g. smallest distortion).
      Type Parameters:
      T - the type of clustering.
      Parameters:
      runs - the number of runs.
      clustering - the clustering algorithm.
      Returns:
      the model.