internal_mahalanobis_distance: Mahalanobis distance of points in a cluster and the cluster...

Description Usage Arguments Details Value See Also

View source: R/distance.R

Description

Calculates the distance between every point in a cluster and the mean/centroid of that cluster. The mahalanobis distance can be interpreted as how many standard deviations away is the point from the mean. The value also takes into account dimensions where there is not much variability, resulting in a larger distance value if points vary in the aforementioned dimensions.

Usage

1
2
internal_mahalanobis_distance(matrix_1, distance = "euclidean",
  output = "mean")

Arguments

matrix_1

Data for cluster 1. Cell by reduced dimension components

distance

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

output

Can be either "mean" or "raw". mean will return the mean of all the distances from the centroid. Raw will return a vector of all the distances from every point to the centroid.

Details

Can either output an entire list of all the distances to the centroid or a mean of the distances. Used to measure how dispersed all the points in a cluster are.

Value

Mahalanobis distance

See Also

Other internal_distance: InternalDistance, internal_distance, internal_linkage_distance


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