Description Usage Arguments Details Value
View source: R/auxiliary_functions.R
Calculate the distance matrix of a given vector and a given metric.
1 |
X |
a numeric vector or a numeric matrix. |
metr.X |
metric that should be used to compute the distance matrix. |
n |
number of samples, i.e. the number of rows of X.. |
p |
number of repetitions, i.e. the number of columns of X. |
... |
additional parameters that are used for other metrics (e.g., the bandwidth for Gaussian kernels) |
For metr.X the following metrices are built in: euclidean, gaussian and discrete. However, it is possible to use a function taking two numerical arguments as metr.X.
The distance matrix corresponding to X.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.