Inference Method

class fuzzy_expert.inference.DecompositionalInference(and_operator, or_operator, implication_operator, composition_operator, production_link, defuzzification_operator)[source]

Bases: object

Decompositional inference method.

Parameters
  • and_operator

    AND operator method for combining the compositions of propositions in a fuzzy rule premise, specified as one of the following:

    • ”min”.

    • ”prod”.

    • ”bunded_prod”.

    • ”drastic_prod”.

  • or_operator

    OR operator method for combining the compositions of propositions in a fuzzy rule premise, specified as one of the following:

    • ”max”.

    • ”prob_or”.

    • ”bounded_sum”.

    • ”drastic_sum”.

  • implication_operator

    method for computing the compositions of propositions in a fuzzy rule premise, specified as one of the following:

    • ”Ra”.

    • ”Rm”.

    • ”Rc”.

    • ”Rb”.

    • ”Rs”.

    • ”Rg”.

    • ”Rsg”.

    • ”Rgs”.

    • ”Rgg”.

    • ”Rss”.

  • production_link

    method for aggregating the consequences of the fuzzy rules, specified as one of the following:

    • ”min”.

    • ”prod”.

    • ”bunded_prod”.

    • ”drastic_prod”.

    • ”max”.

    • ”prob_or”.

    • ”bounded_sum”.

    • ”drastic_sum”.

  • defuzzification_operator

    Method for defuzzificate the resulting membership function, specified as one of the following:

    • ”cog”: Center of gravity.

    • ”boa”: Bisector of area.

    • ”mom”: Mean of the values for which the membership function is maximum.

    • ”lom”: Largest value for which the membership function is maximum.

    • ”som”: Smallest value for which the membership function is minimum.

plot(variables, rules, **facts)[source]