imembones | R Documentation |
Initializes a crisp membership degrees matrix which is used to start a partitional clustering algorithm.
imembones(n, k, mtype, numseed)
n |
an integer for the number of objects in the data set. |
k |
an integer for the number of clusters. |
mtype |
a string representing the type of crisp initialization for a selected cluster. The default is 'hrc'. The alternatives are 'hfc' in which all objects are assumed as the member of the first cluster, and 'hlc' in which all objects are assumed as the member of the last cluster. |
numseed |
a number to be used for the seed of RNG. |
The function imembones
generates a numeric membership degrees matrix containing the crisp initial values for a selected cluster.
an object of class ‘inaparc’, which is a list consists of the following items:
u |
a numeric matrix containing the crisp initial membership degrees of the objects to k clusters. |
sfidx |
an integer for the column index of the selected feature, which used for random sampling. |
call |
a string containing the matched function call that generates this ‘inaparc’ object. |
Zeynel Cebeci, Cagatay Cebeci
imembrand
,
figen
# Generate membership degrees matrix whose last column contains crisp # membership degrees u <- imembones(n=10, k=5, mtype="hlc")$u head(u) tail(u) # Generate membership degrees matrix using a seed number u <- imembones(n=10, k=5, mtype="hrc", numseed=123)$u head(u) tail(u)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.