mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-05-19 07:31:27 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
cb77a2a22d
commit
548666895b
@ -31,7 +31,9 @@ class FuzzySet:
|
|||||||
plot(): Plot the membership function of the fuzzy set.
|
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.
|
with the given parameters.
|
||||||
@ -48,7 +50,6 @@ class FuzzySet:
|
|||||||
self.peak = peak # Peak value
|
self.peak = peak # Peak value
|
||||||
self.right_boundary = right_boundary # Right boundary
|
self.right_boundary = right_boundary # Right boundary
|
||||||
|
|
||||||
|
|
||||||
def membership(self, x):
|
def membership(self, x):
|
||||||
"""
|
"""
|
||||||
Calculate the membership value of
|
Calculate the membership value of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user