Learn R Programming

cccd (version 1.00.05)

prune: Prune Points

Description

a nearest neighbor pruning using neighborhood graphs.

Usage

prune(x, classes, prox = "Gabriel", ignore.ties = TRUE, ...)

Arguments

x
a data matrix.
classes
a vector of class labels.
prox
type of proximity graph.
ignore.ties
do not prune if there is a tie vote.
...
arguments passed to the proximity graph.

Value

  • A list with attributes:
  • xthe pruned data.
  • vthe indices of the retained data.
  • gthe proximity graph.

Details

First a proximity graph is computed on the data. Then points are marked if their neighbors have a different class than they do: if the most common class among the neighbors is different than the point. Then all marked points are removed.

References

http://www.bic.mni.mcgill.ca/users/crisco/pgedit/