| cluster_cmeans | R Documentation |
Fuzzy c-means clustering using e1071::cmeans.
cluster_cmeans(centers = 2, m = 2, iter = 100, dist = "euclidean")
centers |
number of clusters |
m |
fuzziness parameter (m > 1) |
iter |
maximum number of iterations |
dist |
distance method passed to |
Produces soft membership for each cluster. The hard assignment is returned by cluster().
Membership degrees are returned in the membership attribute.
returns a fuzzy clustering object.
Bezdek, J. C. (1981). Pattern Recognition with Fuzzy Objective Function Algorithms.
data(iris)
model <- cluster_cmeans(centers = 3, m = 2)
model <- fit(model, iris[,1:4])
clu <- cluster(model, iris[,1:4])
table(clu)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.