Enum Class NeighboursQueryFactoryType

java.lang.Object
java.lang.Enum<NeighboursQueryFactoryType>
org.tribuo.math.neighbour.NeighboursQueryFactoryType
All Implemented Interfaces:
Serializable, Comparable<NeighboursQueryFactoryType>, Constable

public enum NeighboursQueryFactoryType extends Enum<NeighboursQueryFactoryType>
These are the supported neighbour query implementations. A factory object is used to emit instances of its implementation.
  • Enum Constant Details

  • Method Details

    • values

      public static NeighboursQueryFactoryType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NeighboursQueryFactoryType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNeighboursQueryFactory

      public static NeighboursQueryFactory getNeighboursQueryFactory(NeighboursQueryFactoryType nqFactoryType, Distance distance, int numThreads)
      Returns the appropriate NeighboursQueryFactory implementation.
      Parameters:
      nqFactoryType - The query factory type.
      distance - The distance function.
      numThreads - The number of threads to be used to parallelize the computation.
      Returns:
      The query factory.