title: Computing distance of a vector from the center of K-means cluster
body: <p>I have training data set and I ran K-means on it with K=4 and got four cluster centers. For new data point(s), I would like to know not only the predicted cluster but also the distance from that cluster's center. Is there an API to compute the euclidean distance from the center ? I can make 2 API calls, if that is needed. I am using Scala and I couldn't find any example anywhere.</p>