knn_tree | R Documentation |
Computes nearest-neighbor indices and distances in serial. Query is over all points and results do not include the self-distance.
knn_tree(leaves, k, distances)
leaves |
leaves to find the nearest neighbors of |
k |
number of neighbors to query |
distances |
matrix of Samples x Samples matrix of cophenetic tree distances |
list with two items: index: Samples x K matrix of neighbor indices dist: Samples x K matrix of neighbor distances
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.