Catalano.Fuzzy
Class SingletonFunction
- java.lang.Object
-
- Catalano.Fuzzy.SingletonFunction
-
- All Implemented Interfaces:
- IMembershipFunction
public class SingletonFunction extends java.lang.Object implements IMembershipFunction
Membership function used in fuzzy singletons: fuzzy sets that have just one point with membership value 1.
-
-
Constructor Summary
Constructors Constructor and Description SingletonFunction(float support)Initializes a new instance of the SingletonFunction 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 membership function.floatRightLimit()The rightmost x value of the membership function.
-
-
-
Constructor Detail
-
SingletonFunction
public SingletonFunction(float support)
Initializes a new instance of the SingletonFunction class.- Parameters:
support- Support is the only value of x where the membership function is 1.
-
-
Method Detail
-
GetMembership
public float GetMembership(float x)
Description copied from interface:IMembershipFunctionCalculate membership of a given value to the fuzzy set.- Specified by:
GetMembershipin interfaceIMembershipFunction- Parameters:
x- Value which membership will to be calculated.- Returns:
- Degree of membership [0..1] of the value to the fuzzy set.
-
LeftLimit
public float LeftLimit()
Description copied from interface:IMembershipFunctionThe leftmost x value of the membership function.- Specified by:
LeftLimitin interfaceIMembershipFunction- Returns:
- x.
-
RightLimit
public float RightLimit()
Description copied from interface:IMembershipFunctionThe rightmost x value of the membership function.- Specified by:
RightLimitin interfaceIMembershipFunction- Returns:
- x.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG