TriangularFuzzySet class
Class for representing a fuzzy set that has a triangular shape. It can be defined by a left point, a midpoint (peak) and a right point.
@author {@link https://github.com/Mugen87|Mugen87}
Constructors
- TriangularFuzzySet([double left = 0, double midpoint = 0, double right = 0])
- Constructs a new triangular fuzzy set with the given values.
Properties
- degreeOfMembership ↔ double
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- left ↔ double
-
getter/setter pairinherited
- midpoint ↔ double
-
getter/setter pair
- representativeValue ↔ double
-
getter/setter pairinherited
- right ↔ double
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uuid → String?
-
Unique ID, primarily used in context of serialization/deserialization.
no setterinherited
Methods
-
clearDegreeOfMembership(
) → FuzzySet -
Clears the degree of membership value.
inherited
-
computeDegreeOfMembership(
double value) → double -
Computes the degree of membership for the given value.
override
-
fromJSON(
Map< String, dynamic> json) → TriangularFuzzySet -
Restores this instance from the given JSON object.
override
-
getDegreeOfMembership(
) → double -
Returns the degree of membership.
inherited
-
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.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateDegreeOfMembership(
double value) → FuzzySet -
Updates the degree of membership by the given value. This method is used when
the set is part of a fuzzy rule's consequent.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited