Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 006034b

Browse files
apples53tianyizheng02
authored andcommittedSep 30, 2024
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>
1 parent f175a0f commit 006034b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎fuzzy_logic/fuzzy_operations.py.DISABLED.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if __name__ == "__main__":
2828
union = fuzz.fuzzy_or(X, young, X, middle_aged)[1]
2929
# 2. Intersection = min(µA(x), µB(x))
3030
intersection = fuzz.fuzzy_and(X, young, X, middle_aged)[1]
31-
# 3. Complement (A) = (1- min(µA(x))
31+
# 3. Complement (A) = (1 - min(µA(x)))
3232
complement_a = fuzz.fuzzy_not(young)
3333
# 4. Difference (A/B) = min(µA(x),(1- µB(x)))
3434
difference = fuzz.fuzzy_and(X, young, X, fuzz.fuzzy_not(middle_aged)[1])[1]

0 commit comments

Comments
 (0)
Please sign in to comment.