# NOT RUN {
# Selecting the inital mean(s) using the non-uniform distance weighting.
# k-means++: The Advantages of Careful Seeding, David Arthur
# and Sergei Vassilvitskii.
# URL http://ilpubs.stanford.edu:8090/778/1/2006-13.pdf.
means_uv_impr(rnorm(100,20,10), 2)
# }
Run the code above in your browser using DataLab