Skip to content

Commit

Permalink
Merge branch 'TheAlgorithms:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramy-Badr-Ahmed authored Sep 28, 2024
2 parents cd8be17 + 9b5641d commit 3de5ff3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
- id: auto-walrus

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.3
rev: v0.6.7
hooks:
- id: ruff
- id: ruff-format
Expand All @@ -29,7 +29,7 @@ repos:
- tomli

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.2.1"
rev: "2.2.4"
hooks:
- id: pyproject-fmt

Expand Down
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 3de5ff3

Please sign in to comment.