closest {dprep} | R Documentation |
Function used by baysout to select the k vectors that are closer to a given instance.
closest(dis, neigh, k)
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 |
Caroline Rodriguez