nrc.fuzzy
Class LFuzzySet
java.lang.Object
|
+--nrc.fuzzy.FuzzySet
|
+--nrc.fuzzy.LFuzzySet
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- Direct Known Subclasses:
- LeftGaussianFuzzySet, LeftLinearFuzzySet, SFuzzySet
- public class LFuzzySet
- extends FuzzySet
- implements java.io.Serializable
Used to build specialized FuzzySets that in general have membership values
of 0 at the left edge and 1 at the right edge. Users do not generally
use this class to create FuzzySets directly but most often use
the subclasses of this class, such as SFuzzySet or LeftLinearFuzzySet. The
shape of the curves between the left and right x values of an LFuzzySet
are determined by the function specified. This function will be a class
that implements the FuzzySetFunction Interface. In particular the
SFuzzySet class uses the SFunction class to create an S-shaped curve between the left
and right x values.
The diagram below shows the concept of the LFuzzySet.
The code below shows how the SFuzzySet constructor is defined.
private static SFunction ssf = new SFunction();
public SFuzzySet(double leftEdge, double rightEdge) throws XValuesOutOfOrderException
{
super(leftEdge, rightEdge, ssf);
}
- See Also:
FuzzySet
,
LRFuzzySet
,
SFunction
,
SFuzzySet
,
LeftLinearFunction
,
LeftLinearFuzzySet
,
Serialized Form
Fields inherited from class nrc.fuzzy.FuzzySet |
BFALSE, BTRUE, COLLINEAR_OR_PARALLEL, INCREMENT, INTERSECTION, MAX_INITIAL_POINTS, MAXMIN, NO_INTERSECTION, numPoints, set, simplified, SUM, tool, toStringPrecision, UNION |
Constructor Summary |
LFuzzySet(double leftX,
double rightX,
nrc.fuzzy.FuzzySetFunction leftFunction)
Create an LFuzzySet using the FuzzySetFunction supplied to construct it. |
Method Summary |
protected void |
checkParameters(double leftX,
double rightX)
Make sure that left x value is less than or equal to the right x value. |
Methods inherited from class nrc.fuzzy.FuzzySet |
appendSetPoint, appendSetPoint, centerOfAreaDefuzzify, checkXValueOrder, checkYValueRange, concat, concat, confineToXBounds, copyFuzzySet, equals, findMaxYOverlapValue, fuzzyComplement, fuzzyEqual, fuzzyIntersection, fuzzyIntersection, fuzzyIntersectionUnion, fuzzyNormalize, fuzzyScale, fuzzySum, fuzzySum, fuzzyUnion, fuzzyUnion, getAlphaCut, getArea, getArea, getMaxY, getMembership, getMinY, getPoint, getSupport, getUITools, getX, getXforMembership, getY, goingDown, goingUp, horizontalIntersection, horizontalIntersectionUnion, horizontalUnion, incrementArrayLength, incrementArrayLength, insertSetPoint, insertSetPoint, isConvex, isEmpty, isNormal, isSimplified, maximumDefuzzify, maximumOfIntersection, maximumOfIntersection, momentDefuzzify, noIntersectionTest, nonIntersectionTest, plotFuzzySet, plotFuzzySets, removeSetPoint, removeSetPoint, sameDirection, sameSign, setToStringPrecision, shiftArrayLeft, shiftArrayRight, simplifySet, size, testArrayLength, toString, trimToSize, weightedAverageDefuzzify |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LFuzzySet
public LFuzzySet(double leftX,
double rightX,
nrc.fuzzy.FuzzySetFunction leftFunction)
throws XValuesOutOfOrderException
- Create an LFuzzySet using the FuzzySetFunction supplied to construct it.
- Parameters:
leftX
- Left x value (where membership is 0) of the L (left sided) FuzzySetrightX
- Right x value (where membership is 1) of the L (left sided) FuzzySetleftFunction
- Function that will generate the shaped left side for the FuzzySet
- Throws:
XValuesOutOfOrderException
checkParameters
protected void checkParameters(double leftX,
double rightX)
throws XValuesOutOfOrderException
- Make sure that left x value is less than or equal to the right x value.
- Parameters:
leftX
- Left x value (where membership is 0) of the L (left sided) FuzzySetrightX
- Right x value (where membership is 1) of the L (left sided) FuzzySet
- Throws:
XValuesOutOfOrderException