init.centers | R Documentation |
init.centers
automatically initializes the centers of the
clusters before running the Cross-Entropy Clustering algorithm.
init.centers(x, k, method = c("kmeans++", "random"))
x |
A numeric matrix of data. Each row corresponds to a distinct
observation; each column corresponds to a distinct variable/dimension. It
must not contain |
k |
An integer indicating the number of cluster centers to initialize. |
method |
A character string indicating the initialization method to use. It can take the following values:
|
A matrix with k
rows and ncol(x)
columns.
Arthur, D., & Vassilvitskii, S. (2007). k-means++: the advantages of careful seeding. Proceedings of the Eighteenth Annual ACM-SIAM Symposium on Discrete Algorithms, 1027–1035.
## See the examples provided with the cec() function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.