Skip to content

Defuzzifier

Defuzzifier

Bases: ABC

Abstract class for defuzzifiers.

related

Functions

__repr__

__repr__() -> str

Return the code to construct the defuzzifier in Python.

Returns:

Type Description
str

code to construct the defuzzifier in Python.

__str__

__str__() -> str

Return the code to construct the defuzzifier in the FuzzyLite Language.

Returns:

Type Description
str

code to construct the defuzzifier in the FuzzyLite Language.

configure

configure(parameters: str) -> None

Configure the defuzzifier with the parameters.

Parameters:

Name Type Description Default
parameters str

space-separated parameter values

required

defuzzify abstractmethod

defuzzify(term: Term, minimum: float, maximum: float) -> Scalar

Defuzzify the term using the range [minimum,maximum].

Parameters:

Name Type Description Default
term Term

term to defuzzify, typically an Aggregated term

required
minimum float

minimum value of the range

required
maximum float

maximum value of the range

required

Returns:

Type Description
Scalar

defuzzified value of the term.

parameters

parameters() -> str

Return the space-separated parameters of the defuzzifier.

Returns:

Type Description
str

space-separated parameters of the defuzzifier.