Description Usage Arguments Value

Each distance metric has its own function for speed/efficiency This takes a sample X feature matrix and returns a matrix of k nearest neighbors. This is the one for Euclidean.

1 | ```
calcKNNgraph_euclidean(x, k = 1L)
``` |

`x` |
An m x n numeric matrix |

`k` |
The number of nearest neighbors to return per sample |

An m x k matrix of indicies 1...k of the nearest neighbors for the specified row based on Euclidean distance.

caleblareau/yolo documentation built on May 11, 2017, 9:53 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.