mahalanobis_distance: Calculates the mahalanobis distance between two clusters

Description Usage Arguments Value See Also

View source: R/distance.R

Description

Uses data from two matricies, representing a cluster each and calculates the mahalanobis distance between each cluster.

The mahalanobis distance is the distance between the means of two clusters, scaled by the covariance of the two groups.

Usage

1
mahalanobis_distance(matrix_1, matrix_2, distance = "euclidean")

Arguments

matrix_1

Data for cluster 1. Cell by reduced dimension components

matrix_2

Data for cluster 2 . Cell by reduced dimension components

distance

Point to point distance method to use. e.g. 'euclidean'.

Value

Real positive number representing the distance.

See Also

Other cluster_distance: average_linkage_distance, centroid_linkage_distance, complete_linkage_distance, single_linkage_distance, ward_distance


sbrn3/disscat documentation built on Dec. 12, 2019, 7:54 a.m.