Description Usage Arguments Details Value See Also Examples
Calculate the distance between two vectors.
1 | distance(x, y, measure)
|
x, y |
Numeric vectors. |
measure |
Distance measure ("euclidean" or "squared_euclidean"). |
Distance measures in this package are based on those defined
in the PMML specification.
Distances are calculated using the following equations:
Euclidean: (∑((x_i - y_i)^2))^0.5
Squared euclidean: ∑((x_i - y_i)^2)
The input vectors must be of the same length.
The distance between x
and y
.
similarity
,
PMML comparison measures
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.