R/fit_assign.R
fit_assign.Rd
Finds k clusters in data points and assigns each point to a cluster.
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)