FuzzyRule class

Class for representing a fuzzy rule. Fuzzy rules are comprised of an antecedent and a consequent in the form: IF antecedent THEN consequent.

Compared to ordinary if/else statements with discrete values, the consequent term of a fuzzy rule can fire to a matter of degree.

@author {@link https://github.com/Mugen87|Mugen87}

Constructors

FuzzyRule([FuzzyTerm? antecedent, FuzzyTerm? consequence])
Constructs a new fuzzy rule with the given values.

Properties

antecedent ↔ FuzzyTerm?
getter/setter pair
consequence ↔ FuzzyTerm?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

evaluate() → FuzzyRule
Evaluates the rule and updates the degree of membership of the consequent term with the degree of membership of the antecedent term.
fromJSON(Map<String, dynamic> json, Map<String, FuzzySet> fuzzySets) → FuzzyRule
Restores this instance from the given JSON object.
initConsequence() → FuzzyRule
Initializes the consequent term of this fuzzy rule.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() → Map<String, dynamic>
Transforms this instance into a JSON object.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited