org.clojars.punit-naik.clj-ml.k-means
assign-closest-cluster
(assign-closest-cluster point clusters-map)
Assigns a point to the closest cluster
Returns the `key`/index of the cluster
assign-cluster
(assign-cluster data-points clusters)
Assigns a cluster to all data points
data-with-assigned-clusters
(data-with-assigned-clusters clusters)
elbow
(elbow wcss)
Finds out the elbow point from the clusters,wcss points
elbow-method-data
(elbow-method-data data-points)
Generates data for using elbow method
generate-initial-clusters
(generate-initial-clusters dimensions no-of-clusters)
rapidly-changing?
(rapidly-changing? wcss)
sum-squared-distance
(sum-squared-distance data-points cluster)
update-clusters
(update-clusters data-points no-of-clusters)
(update-clusters data-points clusters error-rate)