public class PiecewiseLinearFunction extends java.lang.Object implements IMembershipFunction
| Modifier and Type | Field and Description |
|---|---|
protected FloatPoint[] |
points
Vector of (X,Y) coordinates for end/start of each line.
|
| Constructor and Description |
|---|
PiecewiseLinearFunction()
Initializes a new instance of the
|
PiecewiseLinearFunction(FloatPoint[] points)
Initializes a new instance of the
|
| 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.
|
protected FloatPoint[] points
public PiecewiseLinearFunction()
public PiecewiseLinearFunction(FloatPoint[] points)
points - Array of (X,Y) coordinates of each start/end of the lines.
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