Class FilteredNeighbourSearch

All Implemented Interfaces:
Serializable, AdditionalMeasureProducer, CapabilitiesHandler, OptionHandler, RevisionHandler

public class FilteredNeighbourSearch extends NearestNeighbourSearch implements CapabilitiesHandler
Applies the given filter before calling the given neighbour search method. The filter must not change the size of the dataset or the order of the instances! Also, the range setting that is specified for the distance function is ignored: all attributes are used for the distance calculation.

Valid options are:

  The filter to use. (default: weka.filters.AllFilter)
  The search method to use. (default: weka.core.neighboursearch.LinearNNSearch)
 Options specific to filter weka.filters.AllFilter:
  If set, filter is run in debug mode and
  may output additional info to the console
  If set, filter capabilities are not checked before filter is built
  (use with caution).
 Options specific to search method weka.core.neighboursearch.LinearNNSearch:
  Skip identical instances (distances equal to zero).
 -A <classname and options>
  Distance function to use.
  (default: weka.core.EuclideanDistance)
  Calculate performance statistics.
$Revision: 8034 $
Eibe Frank (
See Also: