imembrand: Initialization of membership matrix using simple random...

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

View source: R/inaparc.R

Description

Initializes the membership degrees matrix which is used to start a fuzzy and possibilistic partitioning clustering algorithm.

Usage

1
imembrand(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 for any of three random initialization methods. The default method is f1 for fuzzy memberships. The options are f2 and f3 for fuzzy memberships and h for hard (crisp) memberships.

numseed

a number to be used for the seed of RNG.

Details

The function imembrand generates a numeric matrix containing the initial membership degrees by using simple random sampling technique.

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 n objects to k clusters.

call

a string containing the matched function call that generates this ‘inaparc’ object.

Author(s)

Zeynel Cebeci, Cagatay Cebeci

See Also

figen, imembones

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
data(iris)
n <- dim(iris)[1]

# Generate a fuzzy membership degrees matrix using default values
u <- imembrand(n=n, k=5)$u
head(u)
tail(u)

# Generate a fuzzy membership degrees matrix using the method 3
u <- imembrand(n=n, k=5, mtype="f3", numseed=123)$u
head(u)
tail(u)

# Generate a crisp membership degrees matrix 
u <- imembrand(n=n, k=5, mtype="h")$u
head(u)
tail(u)

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