crisp | R Documentation |
Crisps the fuzzy and possibilistic membership degrees from the fuzzy or possibilistic clustering algorithms.
crisp(u, method, tv)
u |
a numeric matrix containing the fuzzy or possibilistic membership degrees of the data objects. |
method |
a string for selection of the crisping method. The default is max that assigns the data object to the cluster in which the object has maximum membership. The alternative is threshold that assigns the objects to a cluster if its maximum membership degree is greater than |
tv |
a number for the threshold membership degree. The default is 0.5 with the |
The function crisp
produces the crisp or hard membership degrees of the objects in order to place them into only one cluster.
cluster |
a numeric vector containing the indexes (labels) of clusters for the maximum membership of the objects. |
Zeynel Cebeci
data(iris)
x <- iris[,1:4]
# Run FCM
res.fcm <- fcm(x, centers=3)
# Crisp the fuzzy memberships degrees and plot the crisp memberships
cllabels <- crisp(res.fcm$u)
plot(x, col=cllabels)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.