From 5f14a63eda29ea033168d76eb41273b51ebded7f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:51:57 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- fuzzy_logic/gaussian_fuzzyset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuzzy_logic/gaussian_fuzzyset.py b/fuzzy_logic/gaussian_fuzzyset.py index f735aa6b1..e1b406d3c 100644 --- a/fuzzy_logic/gaussian_fuzzyset.py +++ b/fuzzy_logic/gaussian_fuzzyset.py @@ -52,7 +52,7 @@ class GaussianFuzzySet: >>> GaussianFuzzySet("Medium", 0, 1).membership(1) 0.6065306597126334 """ - + membership_value = np.exp(-0.5 * ((x - self.mean) / self.std_dev) ** 2) # Directly return for non-complement or return 1 - membership for complement return membership_value if not self.is_complement else 1 - membership_value