Class DistanceFactory


  • public class DistanceFactory
    extends Object
    Registry of distances for kNN clustering.
    Author:
    Antonin Delpeuch
    • Constructor Detail

      • DistanceFactory

        public DistanceFactory()
    • Method Detail

      • get

        public static SimilarityDistance get​(String name)
        Returns the distance registered under this name, or null if it does not exist.
      • getDistanceNames

        public static List<String> getDistanceNames()
        Lists the available distances, by name.