Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
balance parenthesis (add closing bracket) (TheAlgorithms#11563)
* balance parenthesis (add closing bracket)

* Apply suggestions from code review

---------

Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
  • Loading branch information
apples53 and tianyizheng02 authored Sep 24, 2024
commit 9b5641d2d333d04eb474ecbcb15c40ccf18a3d7b
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