km.da {FuzzyR} | R Documentation |
km.da
Description
A Direct Approach for Determining the Switch Points in the Karnik-Mendel Algorithm.
Usage
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
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)