Rdocumentation
powered by
Learn R Programming
dprep (version 2.1)
closest: Auxiliary function used in the function baysout
Description
Function used by baysout to select the k vectors that are closer to a given instance.
Usage
closest(dis, neigh, k)
Arguments
dis
An instance from the dataset under study
neigh
A matrix containing the distance from the given observations to each of its k neighbors.
k
The number of nearest neighbors
See Also
baysout