Class GreedyKCenter.Par<O>

  • Type Parameters:
    O - object type to cluster
    All Implemented Interfaces:
    Parameterizer
    Enclosing class:
    GreedyKCenter<O>

    public static class GreedyKCenter.Par<O>
    extends java.lang.Object
    implements Parameterizer
    Parameterization class
    Author:
    Robert Gehde, Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) Distance<? super O> distance
      Distance function to use
      (package private) int k
      number of clusters
      static OptionID K_ID
      Parameter to specify the number of clusters
      (package private) RandomFactory rand
      Random factory for choosing the first element.
      static OptionID RANDOM_ID
      Parameter for the random seed
    • Constructor Summary

      Constructors 
      Constructor Description
      Par()  
    • Field Detail

      • K_ID

        public static final OptionID K_ID
        Parameter to specify the number of clusters
      • RANDOM_ID

        public static final OptionID RANDOM_ID
        Parameter for the random seed
      • distance

        Distance<? super O> distance
        Distance function to use
      • k

        int k
        number of clusters
      • rand

        RandomFactory rand
        Random factory for choosing the first element.
    • Constructor Detail

      • Par

        public Par()
    • Method Detail

      • configure

        public void configure​(Parameterization config)
        Description copied from interface: Parameterizer
        Configure the class.

        Note: the status is collected by the parameterization object, so that multiple errors may arise and be reported in one run.

        Specified by:
        configure in interface Parameterizer
        Parameters:
        config - Parameterization
      • make

        public GreedyKCenter<O> make()
        Description copied from interface: Parameterizer
        Make an instance after successful configuration.

        Note: your class should return the exact type, only this very broad interface should use Object as return type.

        Specified by:
        make in interface Parameterizer
        Returns:
        a new instance