intervals
¶Also contains algorithms for the DSW method arithmatic operations on fuzzy sets, which depend upon heavy use of intervals.
skfuzzy.intervals.addval (interval1, interval2) |
Add intervals interval1 and interval2. |
skfuzzy.intervals.divval (interval1, interval2) |
Divide interval2 into interval1 , by inversion and multiplication. |
skfuzzy.intervals.dsw_add (x, mfx, y, mfy, n) |
Add two fuzzy variables together using the restricted DSW method [1]. |
skfuzzy.intervals.dsw_div (x, mfx, y, mfy, n) |
Divide one fuzzy variable by another using the restricted DSW method [1]. |
skfuzzy.intervals.dsw_mult (x, mfx, y, mfy, n) |
Multiply two fuzzy variables using the restricted DSW method [1]. |
skfuzzy.intervals.dsw_sub (x, mfx, y, mfy, n) |
Subtract a fuzzy variable from another by the restricted DSW method [1]. |
skfuzzy.intervals.multval (interval1, interval2) |
Multiply intervals interval1 and interval2. |
skfuzzy.intervals.scaleval (q, interval) |
Multiply scalar q with interval interval . |
skfuzzy.intervals.subval (interval1, interval2) |
Subtract interval interval2 from interval interval1. |
skfuzzy.intervals.
addval
(interval1, interval2)[source]¶Add intervals interval1 and interval2.
Parameters: | interval1 : 2-element iterable
interval2 : 2-element iterable
|
---|---|
Returns: | Z : 2-element array
|
skfuzzy.intervals.
divval
(interval1, interval2)[source]¶Divide interval2
into interval1
, by inversion and multiplication.
Parameters: | interval1 : 2-element iterable
interval2 : 2-element iterable
|
---|---|
Returns: | z : 2-element array
|
skfuzzy.intervals.
dsw_add
(x, mfx, y, mfy, n)[source]¶Add two fuzzy variables together using the restricted DSW method [1].
Parameters: | x : 1d array
mfx : 1d array
y : 1d array
mfy : 1d array
n : int
|
---|---|
Returns: | z : 1d array
mfz : 1d array
|
Notes
The Dong, Shah, and Wong (DSW) method requires convex fuzzy membership
functions. The dsw_*
functions return results similar to Matplotlib’s
fuzarith
function.
References
[R37] | W. Dong and H. Shah and F. Wong, Fuzzy computations in risk and decision analysis, Civ Eng Syst, 2, 1985, pp 201-208. |
skfuzzy.intervals.
dsw_div
(x, mfx, y, mfy, n)[source]¶Divide one fuzzy variable by another using the restricted DSW method [1].
Parameters: | x : 1d array
mfx : 1d array
y : 1d array
mfy : 1d array
n : int
|
---|---|
Returns: | z : 1d array
mfz : 1d array
|
Notes
The Dong, Shah, and Wong (DSW) method requires convex fuzzy membership
functions. The dsw_*
functions return results similar to Matplotlib’s
fuzarith
function.
References
[R38] | W. Dong and H. Shah and F. Wong, Fuzzy computations in risk and decision analysis, Civ Eng Syst, 2, 1985, pp 201-208. |
skfuzzy.intervals.
dsw_mult
(x, mfx, y, mfy, n)[source]¶Multiply two fuzzy variables using the restricted DSW method [1].
Parameters: | x : 1d array
mfx : 1d array
y : 1d array
mfy : 1d array
n : int
|
---|---|
Returns: | z : 1d array
mfz : 1d array
|
Notes
The Dong, Shah, and Wong (DSW) method requires convex fuzzy membership
functions. The dsw_*
functions return results similar to Matplotlib’s
fuzarith
function.
References
[R39] | W. Dong and H. Shah and F. Wong, Fuzzy computations in risk and decision analysis, Civ Eng Syst, 2, 1985, pp 201-208. |
skfuzzy.intervals.
dsw_sub
(x, mfx, y, mfy, n)[source]¶Subtract a fuzzy variable from another by the restricted DSW method [1].
Parameters: | x : 1d array
mfx : 1d array
y : 1d array
mfy : 1d array
n : int
|
---|---|
Returns: | z : 1d array
mfz : 1d array
|
Notes
The Dong, Shah, and Wong (DSW) method requires convex fuzzy membership
functions. The dsw_*
functions return results similar to Matplotlib’s
fuzarith
function.
References
[R40] | W. Dong and H. Shah and F. Wong, Fuzzy computations in risk and decision analysis, Civ Eng Syst, 2, 1985, pp 201-208. |
skfuzzy.intervals.
multval
(interval1, interval2)[source]¶Multiply intervals interval1 and interval2.
Parameters: | interval1 : 1d array, length 2
interval2 : 1d array, length 2
|
---|---|
Returns: | z : 1d array, length 2
|