Description Usage Arguments Value
This function computes and returns the distance matrix computed by using the specified distance measure to compute the distances between the rows of a data matrix.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | distance(x, y, method = "euclidean")
## S4 method for signature 'vclMatrix'
dist(x, method = "euclidean", diag = FALSE,
upper = FALSE, p = 2)
## S4 method for signature 'vclMatrix,vclMatrix'
distance(x, y, method = "euclidean")
## S4 method for signature 'gpuMatrix'
dist(x, method = "euclidean", diag = FALSE,
upper = FALSE, p = 2)
## S4 method for signature 'gpuMatrix,gpuMatrix'
distance(x, y, method = "euclidean")
|
x |
A gpuMatrix or vclMatrix object |
y |
A gpuMatrix or vclMatrix object |
method |
the distance measure to be used. This must be one of "euclidean" or "sqEuclidean". |
diag |
logical value indicating whether the diagonal of the distance matrix should be printed |
upper |
logical value indicating whether the upper triangle of the distance matrix |
p |
The power of the Minkowski distance (not currently used) |
a gpuMatrix/vclMatrix containing the corresponding distances
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.