K-mean++ clustering
An implementaion of K-mean clustering:
function: k_mean_pp(x, k)
Takes:
x: input data points in form of list of data point
eg: x = [[12,34,21], [23,34,23], ...... ]
k: number of cluster for dividing data points
eg: k=3
Returns:
cluster: contain assigned cluser for every data point
eg: cluster = [1, 0 ,2, ......]