Class SharedNearestNeighborPreprocessor.Factory<O>

    • Field Detail


        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.

        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)
        numberOfNeighbors - Number of neighbors
        distance - Distance function