Class SharedNearestNeighborPreprocessor.Factory<O>

    • Field Detail

      • NUMBER_OF_NEIGHBORS_ID

        public static final OptionID NUMBER_OF_NEIGHBORS_ID
        Parameter to indicate the number of neighbors to be taken into account for the shared-nearest-neighbor similarity.
      • DISTANCE_FUNCTION_ID

        public static final OptionID DISTANCE_FUNCTION_ID
        Parameter to indicate the distance function to be used to ascertain the nearest neighbors.
      • numberOfNeighbors

        protected int numberOfNeighbors
        Holds the number of nearest neighbors to be used.
      • distanceFunction

        protected Distance<O> distanceFunction
        Hold the distance function to be used.
    • Constructor Detail

      • Factory

        public Factory​(int numberOfNeighbors,
                       Distance<O> distance)
        Constructor.
        Parameters:
        numberOfNeighbors - Number of neighbors
        distance - Distance function