View source: R/matching_distance.R
| compute_distance_matrix | R Documentation |
Compute pairwise distance matrix
compute_distance_matrix(
left_mat,
right_mat,
distance = "euclidean",
sigma = NULL
)
left_mat |
Numeric matrix of left units (rows = units, cols = variables). |
right_mat |
Numeric matrix of right units (rows = units, cols = variables). |
distance |
Character string specifying distance metric, or a function. |
sigma |
Optional covariance matrix for Mahalanobis distance. If |
Numeric matrix of pairwise distances (n_left x n_right).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.