File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
import matplotlib .pyplot as plt
2
2
import numpy as np
3
3
from dataclasses import dataclass
4
+
4
5
"""
5
6
By @Shreya123714
6
7
@@ -46,6 +47,7 @@ class FuzzySet:
46
47
this fuzzy set.
47
48
plot(): Plot the membership function of the fuzzy set.
48
49
"""
50
+
49
51
name : str
50
52
left_boundary : float
51
53
peak : float
@@ -62,10 +64,10 @@ class FuzzySet:
62
64
peak (float): The peak (central) value of the fuzzy set.
63
65
right_boundary (float): The right boundary of the fuzzy set.
64
66
"""
65
- # self.name = name # Fuzzy set name
66
- # self.left_boundary = left_boundary # Left boundary
67
- # self.peak = peak # Peak value
68
- # self.right_boundary = right_boundary # Right boundary
67
+ # self.name = name # Fuzzy set name
68
+ # self.left_boundary = left_boundary # Left boundary
69
+ # self.peak = peak # Peak value
70
+ # self.right_boundary = right_boundary # Right boundary
69
71
70
72
def membership (self , x : float ) -> float :
71
73
"""
You can’t perform that action at this time.
0 commit comments