mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-05-18 23:21:28 +00:00
Merge branch 'master' of https://github.com/Shreya123714/Python
This commit is contained in:
commit
cb77a2a22d
@ -33,13 +33,15 @@ class FuzzySet:
|
||||
|
||||
def __init__(self, name: str, left_boundary: float, peak: float, right_boundary: float) -> None:
|
||||
"""
|
||||
Initializes a triangular fuzzy set with the given parameters.
|
||||
Initializes a triangular fuzzy set
|
||||
with the given parameters.
|
||||
|
||||
Args:
|
||||
name (str): The name or label of the fuzzy set.
|
||||
left_boundary (float): The left boundary of the fuzzy set.
|
||||
peak (float): The peak (central) value of the fuzzy set.
|
||||
right_boundary (float): The right boundary of the fuzzy set.
|
||||
a (float): The left boundary of the fuzzy set.
|
||||
b (float): The peak (central) value of
|
||||
the fuzzy set.
|
||||
c (float): The right boundary of the fuzzy set.
|
||||
"""
|
||||
self.name = name # Fuzzy set name
|
||||
self.left_boundary = left_boundary # Left boundary
|
||||
|
Loading…
x
Reference in New Issue
Block a user