identity_dist | R Documentation |
Identity distance ('identity_dist') between two vectors is defined as: d = (x - y)/sqrt(2). The 'identity_dist_matrix' function performs this calculation for every pairwise rows in a matrix.
identity_dist(x, y, iqr = FALSE) identity_dist_matrix(matrix) calcIdenDist(matrix) identityDist(x, y, iqr = FALSE)
x |
a numeric vector |
y |
a numeric vector |
iqr |
logical, default to FALSE. If set to TRUE, then IQR of the identity distance is returned. |
matrix |
a matrix |
set.seed(1) x = rnorm(100) identity_dist(x = x, y = 3*x, iqr = FALSE) identity_dist(x = x, y = 3*x, iqr = TRUE) set.seed(1) x = matrix(rnorm(100), ncol = 20) identity_dist_matrix(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.