kmeans++ from http://mahito.info/kmeansp2.html
1 |
x |
numeric matrix of data, or an object that can be coerced to such a matrix (such as a numeric vector or a data frame with all numeric columns) |
k |
number of clusters |
iter.max |
the maximum number of iterations allowed |
nstart |
if centers is a number, how many random sets should be chosen? |
... |
additional arguments given to kmeans() |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.