knn_dist.default | R Documentation |
Computes the distance between two numeric vectors using the logarithmic difference.
## Default S3 method:
knn_dist(x, y)
x |
A numeric vector. |
y |
A numeric vector. |
This method calculates the logarithmic difference between elements of x
and y
. Note that this method assumes x
and y
are numeric and may produce warnings if there are negative values or zero.
A numeric vector of distances between the elements of x
and y
, calculated as log(x - y)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.