Calculates the Euclidian distance between points. This function can use in kmeans function to do the clustering procedure using the Euclidian distance.
Usage
Euclid(x, mu)
Arguments
x
matrix of data (dim 1: samples (must be equal to dim 1 of X), dim 2: attributes (must be equal to dim 2 of X))
mu
initial seleted centroids (randomly or another method).