Description Usage Arguments Value Examples
Calculates center coordinates of each cluster
1 | calc_centers(X, centers, labels)
|
X |
array Data points of dimension (n,d) |
centers |
array Coordinates of previous cluster centers, dimension (k,d) (used only to determine number of centers k) |
labels |
array Cluster assignments for each point in X, dimension (n,1) |
array Center coordinate for each cluster, dimension (k,d)
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.