Description Usage Arguments Details Value Author(s) References See Also
Function that returns the distance from a vector x
to its
k-nearest-neighbors in the matrix data
1 | knneigh.vect(x, data, k)
|
x |
An observation. |
data |
A data set that will be internally coerced into a matrix. |
k |
The number of neighbours. |
This function is strongly based on the code provided by Acuna
et. al. (2009) for the previously available dprep
package.
A vector.
Luis Torgo ltorgo@dcc.fc.up.pt
Torgo, L. (2016) Data Mining using R: learning with case studies, second edition, Chapman & Hall/CRC (ISBN-13: 978-1482234893).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.