This example uses the Scale function to scale data (using the maxabs method) before inputting it to the function KMeans, which outputs the centroids of the clusters in the data set. (Background explains the reason for scaling data before inputting it to a distance-based analysis function like KMeans.)