Skip to content

Commit

Permalink
balance parenthesis (add closing bracket) (#11563)
Browse files Browse the repository at this point in the history
* balance parenthesis (add closing bracket)

* Apply suggestions from code review

---------

Co-authored-by: Tianyi Zheng <[email protected]>
  • Loading branch information
apples53 and tianyizheng02 authored Sep 24, 2024
1 parent 50cc00b commit 9b5641d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuzzy_logic/fuzzy_operations.py.DISABLED.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if __name__ == "__main__":
union = fuzz.fuzzy_or(X, young, X, middle_aged)[1]
# 2. Intersection = min(µA(x), µB(x))
intersection = fuzz.fuzzy_and(X, young, X, middle_aged)[1]
# 3. Complement (A) = (1- min(µA(x))
# 3. Complement (A) = (1 - min(µA(x)))
complement_a = fuzz.fuzzy_not(young)
# 4. Difference (A/B) = min(µA(x),(1- µB(x)))
difference = fuzz.fuzzy_and(X, young, X, fuzz.fuzzy_not(middle_aged)[1])[1]
Expand Down

0 comments on commit 9b5641d

Please sign in to comment.