Catalano.Fuzzy
Class FuzzySet
- java.lang.Object
-
- Catalano.Fuzzy.FuzzySet
-
public class FuzzySet extends java.lang.ObjectThe class represents a fuzzy set.
-
-
Constructor Summary
Constructors Constructor and Description FuzzySet(java.lang.String name, IMembershipFunction function)Initializes a new instance of the FuzzySet class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description floatgetMembership(float x)Calculate membership of a given value to the fuzzy set.floatLeftLimit()The leftmost x value of the fuzzy set's membership function.java.lang.StringName()Name of the fuzzy set.floatRightLimit()The rightmost x value of the fuzzy set's membership function.
-
-
-
Constructor Detail
-
FuzzySet
public FuzzySet(java.lang.String name, IMembershipFunction function)Initializes a new instance of the FuzzySet class.- Parameters:
name- Name of the fuzzy set.function- Membership function that will define the shape of the fuzzy set.
-
-
Method Detail
-
Name
public java.lang.String Name()
Name of the fuzzy set.- Returns:
- Name.
-
LeftLimit
public float LeftLimit()
The leftmost x value of the fuzzy set's membership function.- Returns:
- X.
-
RightLimit
public float RightLimit()
The rightmost x value of the fuzzy set's membership function.- Returns:
- X.
-
getMembership
public float getMembership(float x)
Calculate membership of a given value to the fuzzy set.- Parameters:
x- Value which membership needs to be calculated.- Returns:
- Degree of membership [0..1] of the value to the fuzzy set.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG