Skip to content

Commit 5f14a63

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 03ae118 commit 5f14a63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fuzzy_logic/gaussian_fuzzyset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def membership(self, x: float) -> float:
5252
>>> GaussianFuzzySet("Medium", 0, 1).membership(1)
5353
0.6065306597126334
5454
"""
55-
55+
5656
membership_value = np.exp(-0.5 * ((x - self.mean) / self.std_dev) ** 2)
5757
# Directly return for non-complement or return 1 - membership for complement
5858
return membership_value if not self.is_complement else 1 - membership_value

0 commit comments

Comments
 (0)