Description Usage Arguments Value
Groups the points in your dataset ,X, into the desired number of clusters, based on the median distance between the points. This function uses random intilization to assign the first medians and then will update the medians and the group assignments until the assignment does not change.
1 | kmedians(X, num_clusters, n_it = 100)
|
X |
a matrix, the dataset being clustered |
num_clusters |
integer, the desired number of clusters |
n_it |
integer, number of iterations |
list, contains both medians and labes medians: matrix The coordinates of the medians for each cluster
labels: list List that has the assignment of the cluster for each point in the dataset
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.