FuzzyCluster | R Documentation |
This function works by assigning membership to each data point corresponding to each cluster center based on the distance between the cluster center and the data point. A data object is the member of all clusters with varying degrees of fuzzy membership between 0 and 1.
FuzzyCluster(data = NULL, ...)
data |
A Data set |
... |
k: The number of Clusters |
A list of cluster labels and a R object of class "fcm ppclust"
library(datasets) data(iris) rndSamples <- sample(nrow(iris),100) trainData <- iris[rndSamples,] testData <- iris[-rndSamples,] cls <- FuzzyCluster(trainData[,1:4],3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.