What is the main purpose of using distance metrics in clustering algorithms?
-
To determine the number of clusters
-
To measure the similarity or dissimilarity between data points
-
To visualize the clusters formed
-
To optimize the performance of the algorithm