[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-10-30 12:17:44 +00:00
parent 8735fb0e66
commit af4a64b125

View File

@ -60,7 +60,11 @@ class GaussianFuzzySet:
membership_value = np.exp(-0.5 * ((member - self.mean) / self.std_dev) ** 2) membership_value = np.exp(-0.5 * ((member - self.mean) / self.std_dev) ** 2)
# Directly return for non-complement or return 1 - membership for complement # Directly return for non-complement or return 1 - membership for complement
return float(membership_value) if not self.is_complement else 1 - float(membership_value) return (
float(membership_value)
if not self.is_complement
else 1 - float(membership_value)
)
def complement(self) -> GaussianFuzzySet: def complement(self) -> GaussianFuzzySet:
""" """