Skip to content

Commit 9366a96

Browse files
committed
corrected docstring
1 parent 158e34d commit 9366a96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/fuzzylogic/classes.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,9 @@ def __getitem__(self, key: Iterable[Set]) -> Set:
495495
def __call__(self, values: dict[Domain, float], method=defuzz.cog) -> float | None:
496496
"""
497497
Calculate the inferred crisp value based on the fuzzy rules.
498-
The 'method' parameter should be one of the static methods from the DefuzzMethod class.
498+
values: dict[Domain, float] - the input values for the fuzzy sets
499+
method: defuzzification method to use (default: center of gravity) from fuzzylogic.defuzz
500+
Returns the defuzzified value.
499501
"""
500502
assert isinstance(values, dict), "Please pass a dict[Domain, float|int] as values."
501503
assert values, "No condition rules defined!"

0 commit comments

Comments
 (0)