We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 158e34d commit 9366a96Copy full SHA for 9366a96
src/fuzzylogic/classes.py
@@ -495,7 +495,9 @@ def __getitem__(self, key: Iterable[Set]) -> Set:
495
def __call__(self, values: dict[Domain, float], method=defuzz.cog) -> float | None:
496
"""
497
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.
+ 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.
501
502
assert isinstance(values, dict), "Please pass a dict[Domain, float|int] as values."
503
assert values, "No condition rules defined!"
0 commit comments