FuzzySet class
Base class for fuzzy sets. This type of sets are defined by a membership function which can be any arbitrary shape but are typically triangular or trapezoidal. They define a gradual transition from regions completely outside the set to regions completely within the set, thereby enabling a value to have partial membership to a set.
This class is derived from {@link FuzzyTerm} so it can be directly used in fuzzy rules. According to the composite design pattern, a fuzzy set can be considered as an atomic fuzzy term.
@author {@link https://github.com/Mugen87|Mugen87}
- Inheritance
- Implementers
Constructors
Properties
- degreeOfMembership ↔ double
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- left ↔ double
-
getter/setter pair
- representativeValue ↔ double
-
getter/setter pair
- right ↔ double
-
getter/setter pair
- 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.
override
-
computeDegreeOfMembership(
double value) → double - Computes the degree of membership for the given value. Notice that this method does not set {@link FuzzySet#degreeOfMembership} since other classes use it in order to calculate intermediate degree of membership values. This method be implemented by all concrete fuzzy set classes.
-
fromJSON(
Map< String, dynamic> json) → FuzzySet -
Restores this instance from the given JSON object.
override
-
getDegreeOfMembership(
) → double -
Returns the degree of membership.
override
-
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited