imembones: Initialization of a crisp membership matrix using a selected...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/inaparc.R

Description

Initializes a crisp membership degrees matrix which is used to start a partitional clustering algorithm.

Usage

1
imembones(n, k, mtype, numseed)

Arguments

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.

Details

The function imembones generates a numeric membership degrees matrix containing the crisp initial values for a selected cluster.

Value

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.

Author(s)

Zeynel Cebeci, Cagatay Cebeci

See Also

imembrand, figen

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# 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)

inaparc documentation built on March 26, 2020, 7:30 p.m.