public class SingletonFunction extends java.lang.Object implements IMembershipFunction
| Modifier and Type | Field and Description |
|---|---|
protected float |
support
The unique point where the membership value is 1.
|
| Constructor and Description |
|---|
SingletonFunction(float support)
Initializes a new instance of the SingletonFunction class.
|
| Modifier and Type | Method and Description |
|---|---|
float |
GetMembership(float x)
Calculate membership of a given value to the fuzzy set.
|
float |
LeftLimit()
The leftmost x value of the membership function.
|
float |
RightLimit()
The rightmost x value of the membership function.
|
public SingletonFunction(float support)
support - Support is the only value of x where the membership function is 1.public float GetMembership(float x)
IMembershipFunctionGetMembership in interface IMembershipFunctionx - Value which membership will to be calculated.public float LeftLimit()
IMembershipFunctionLeftLimit in interface IMembershipFunctionpublic float RightLimit()
IMembershipFunctionRightLimit in interface IMembershipFunction