From 548666895bf8db944379f89d6b5ac41150cc6a91 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 28 Oct 2023 05:48:22 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- fuzzy_logic/fuzzy_operations.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fuzzy_logic/fuzzy_operations.py b/fuzzy_logic/fuzzy_operations.py index 8e5792c0d..dbcf66445 100644 --- a/fuzzy_logic/fuzzy_operations.py +++ b/fuzzy_logic/fuzzy_operations.py @@ -31,15 +31,17 @@ class FuzzySet: plot(): Plot the membership function of the fuzzy set. """ - def __init__(self, name: str, left_boundary: float, peak: float, right_boundary: float) -> None: + def __init__( + self, name: str, left_boundary: float, peak: float, right_boundary: float + ) -> None: """ - Initializes a triangular fuzzy set + Initializes a triangular fuzzy set with the given parameters. Args: name (str): The name or label of the fuzzy set. a (float): The left boundary of the fuzzy set. - b (float): The peak (central) value of + b (float): The peak (central) value of the fuzzy set. c (float): The right boundary of the fuzzy set. """ @@ -48,7 +50,6 @@ class FuzzySet: self.peak = peak # Peak value self.right_boundary = right_boundary # Right boundary - def membership(self, x): """ Calculate the membership value of