closest {dprep}R Documentation

Auxiliary function for computing the Bay's algorithm

Description

Function used by baysout to select the k vectors that are closer to a given instance.

Usage

closest(dis, neigh, k)

Arguments

dis a instance from the dataset under study
neigh matrix containing the distance form the given observations to each of its k neighbors.
k The number of nearest neighbors

Author(s)

Caroline Rodriguez

See Also

baysout


[Package dprep version 1.0 Index]