Class HamerlyKMeans.Par<V extends NumberVector>

    • Constructor Detail

      • Par

        public Par()
    • Method Detail

      • needsMetric

        protected boolean needsMetric()
        Description copied from class: AbstractKMeans.Par
        Users could use other non-metric distances at their own risk; but some k-means variants make explicit use of the triangle inequality, we emit extra warnings then.
        Overrides:
        needsMetric in class AbstractKMeans.Par<V extends NumberVector>
        Returns:
        true if the algorithm uses triangle inequality
      • make

        public HamerlyKMeans<V> 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
        Specified by:
        make in class AbstractKMeans.Par<V extends NumberVector>
        Returns:
        a new instance