Description Usage Arguments Value Examples
Finds k clusters in data points and assigns each point to a cluster.
1 | fit_assign(X, k)
|
X |
array: Data points of dimension (n,d) |
k |
int: The number of desired clusters |
list: array of cluster centers dimension(n,d), array of cluster labels dimension (n,1)
1 2 | X = rbind(c(0,0), c(1,1))
km <- fit_assign(X, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.