km.da: km.da

Description Usage Arguments Value Author(s) References Examples

View source: R/FuzzyOperation.R

Description

A Direct Approach for Determining the Switch Points in the Karnik-Mendel Algorithm.

Usage

1
km.da(wl, wr, f, maximum = F, w.which = F, sorted = F, k.which = F)

Arguments

wl

A vector of lower membership grades.

wr

A vector of upper membership grades.

f

A vector of the primary values in the discrete universe of discourse X.

maximum

T, to calculate the maximum centroid; F, to calulate the minimum centroid.

w.which

T, to show which membership grade to be used to calculate maximum/minimum centroid for each primary value.

sorted

T, to indicate that the primary values have already been put in ascending order.

k.which

T, to show the index of the switch point selected by the algorithm.

Value

w.which=T, a two-column matrix indicating which membership grades to be used; w.which=F and k.which=T, a vector of the centroid and the switch point; w.which=F and k.which=F, a single value of the centroid.

Author(s)

Chao Chen

References

[1] C. Chen, R. John, J. Twycross, and J. M. Garibaldi, “A Direct Approach for Determining the Switch Points in the Karnik–Mendel Algorithm,” IEEE Transactions on Fuzzy Systems, vol. 26, no. 2, pp. 1079–1085, Apr. 2018.
doi: 10.1109/TFUZZ.2017.2699168

[2] C. Chen, D. Wu, J. M. Garibaldi, R. John, J. Twycross, and J. M. Mendel, “A Comment on ‘A Direct Approach for Determining the Switch Points in the Karnik-Mendel Algorithm,’” IEEE Transactions on Fuzzy Systems, vol. 26, no. 6, pp. 3905–3907, 2018.
doi: 10.1109/TFUZZ.2018.2865134

Examples

1
2
3
4
5
wr <- runif(100, 0, 1)
wl <- wr * runif(100, 0, 1)
f <- abs(runif(100, 0, 1))
f <- sort(f)
km.da(wl, wr, f)

Example output

[1] 0.4239162

FuzzyR documentation built on May 19, 2021, 9:06 a.m.

Related to km.da in FuzzyR...