knn_dist | R Documentation |
A generic function for computing distances between data points for k-nearest neighbors analysis.
knn_dist(x, y)
x |
The first argument for method dispatch. The type of this argument determines which method is called. |
y |
The second argument for method dispatch. The type of this argument determines which method is called. |
This function is a generic for computing k-nearest neighbors distances. Methods should be implemented for specific classes to define how distances are calculated.
The return value depends on the method implemented for the specific classes of x
and y
.
knn_dist.default
for the default method.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.