Skip to contents

Computes the pairwise Mahalanobis distances using a robustly estimated covariance matrix, which can be more resistant to outliers.

Usage

# S3 method for robustmahadist
pairwise_dist(obj, X)

Arguments

X

Numeric matrix where rows represent observations and columns represent variables.

dist_obj

A list that might include additional parameters for distance computation, currently unused.

Value

An object of class `dist` containing the computed robust Mahalanobis distances.

Examples

X <- matrix(rnorm(100), 10, 10)
dist_matrix <- pairwise_dist.robustmahadist(list(), X)
#> Error in pairwise_dist.robustmahadist(list(), X): could not find function "pairwise_dist.robustmahadist"