Class PCANNSearchWithIndices

    • Constructor Detail

      • PCANNSearchWithIndices

        public PCANNSearchWithIndices()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing this nearest neighbour search algorithm.
        Overrides:
        globalInfo in class NewNNSearch
        Returns:
        a description of the algorithm for displaying in the explorer/experimenter gui
      • kNearestNeighboursIndices

        public int[] kNearestNeighboursIndices​(weka.core.Instance target,
                                               int kNN)
                                        throws Exception
        Returns the indices of the k nearest instances in the current neighbourhood to the supplied instance.
        Specified by:
        kNearestNeighboursIndices in interface NearestNeighbourSearchWithIndices
        Parameters:
        target - The instance to find the k nearest neighbours for.
        kNN - The number of nearest neighbours to find.
        Returns:
        the indices of the k nearest neighbors in the dataset
        Throws:
        Exception - if the neighbours could not be found.
      • getRevision

        public String getRevision()
        Returns the revision string.
        Specified by:
        getRevision in interface weka.core.RevisionHandler
        Overrides:
        getRevision in class NewNNSearch
        Returns:
        the revision