Skip to content

Commit 63603cf

Browse files
authored
Update gaussian_fuzzyset.py
1 parent 5f14a63 commit 63603cf

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

fuzzy_logic/gaussian_fuzzyset.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
"""
88

99
from __future__ import annotations
10+
1011
from dataclasses import dataclass
11-
import numpy as np
12+
1213
import matplotlib.pyplot as plt
14+
import numpy as np
1315

1416

1517
@dataclass
@@ -19,10 +21,11 @@ class GaussianFuzzySet:
1921
2022
Attributes:
2123
name: The name or label of the fuzzy set.
22-
mean: The mean value (center) of the Gaussian fuzzy set.
23-
std_dev: The standard deviation (controls the spread) of the Gaussian fuzzy set.
24-
is_complement: Indicates whether this is the complement of the original fuzzy set.
25-
24+
mean: The mean value (center) of the Gaussianfuzzy set.
25+
std_dev: The standard deviation (controls the spread) of
26+
the Gaussian fuzzy set.
27+
is_complement: Indicates whether this is the complement
28+
of the original fuzzy set.
2629
Methods:
2730
membership(x): Calculate the membership value of an input 'x' in the fuzzy set.
2831
complement(): Create a new GaussianFuzzySet instance representing the complement.

0 commit comments

Comments
 (0)