An R Introduction to Statistics

distance matrix

Hierarchical Cluster Analysis

  With the distance matrix found in previous tutorial, we can use various techniques of cluster analysis for relationship discovery. For example, in the data set mtcars, we can run the distance matrix with hclust, and plot a dendrogram that displays a hierarchical relationship among the vehicles.

Distance Matrix by GPU

A comparison of computing the distance matrix in CPU with dist function in core R, and in GPU with rpuDist in rpud.