Description Usage Arguments Examples
Configure which package is used to compute the distance matrix or register one. Note that the speed depends on the data and the hardware.
1 |
mode |
string. The available modes are |
FUN |
a function which has one argument |
1 2 3 4 | # use stats::dist to compute the pairwise distance
dist.mode("stats")
## use gputools to compute the pairwise distance with GPU
# dist.mode("gputools", function(x) gputools::gpuDist(x, method = "euclidean", p = 2.0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.