Functions | |
float | imp_gaines (float a, float b) |
float | imp_goedel (float a, float b) |
float | imp_kleene_dienes (float a, float b) |
float | imp_reichenbach (float a, float b) |
float | imp_lukasiewicz (float a, float b) |
Collection of fuzzy implicator functions. This module provides a set of standard fuzzy logic implicators. Each function takes two fuzzy truth values (floats in the range [0.0, 1.0]) and returns the result of the corresponding implicator.
float frsutils.core.implicators.imp_gaines | ( | float | a, |
float | b ) |
Gaines fuzzy implicator. Returns 1.0 if a <= b. Returns b / a if a > b and a > 0. Returns 0.0 if a == 0 and b < a. @param a: Antecedent value in the range [0.0, 1.0]. @param b: Consequent value in the range [0.0, 1.0]. @return: Result of Gaines' implicator. @throws ValueError: If either input is outside the range [0.0, 1.0].
Definition at line 11 of file implicators.py.
float frsutils.core.implicators.imp_goedel | ( | float | a, |
float | b ) |
Gödel fuzzy implicator. Returns 1.0 if a <= b, otherwise returns b. @param a: Antecedent value in the range [0.0, 1.0]. @param b: Consequent value in the range [0.0, 1.0]. @return: Result of Gödel's implicator. @throws ValueError: If either input is outside the range [0.0, 1.0].
Definition at line 33 of file implicators.py.
float frsutils.core.implicators.imp_kleene_dienes | ( | float | a, |
float | b ) |
Kleene-Dienes fuzzy implicator. Computes max(1 - a, b). @param a: Antecedent value in the range [0.0, 1.0]. @param b: Consequent value in the range [0.0, 1.0]. @return: Result of Kleene-Dienes implicator. @throws ValueError: If either input is outside the range [0.0, 1.0].
Definition at line 48 of file implicators.py.
float frsutils.core.implicators.imp_lukasiewicz | ( | float | a, |
float | b ) |
Łukasiewicz fuzzy implicator. Computes min(1, 1 - a + b). @param a: Antecedent value in the range [0.0, 1.0]. @param b: Consequent value in the range [0.0, 1.0]. @return: Result of Łukasiewicz implicator. @throws ValueError: If either input is outside the range [0.0, 1.0].
Definition at line 78 of file implicators.py.
float frsutils.core.implicators.imp_reichenbach | ( | float | a, |
float | b ) |
Reichenbach fuzzy implicator. Computes 1 - a + a * b. @param a: Antecedent value in the range [0.0, 1.0]. @param b: Consequent value in the range [0.0, 1.0]. @return: Result of Reichenbach implicator. @throws ValueError: If either input is outside the range [0.0, 1.0].
Definition at line 63 of file implicators.py.