nrc.fuzzy
Class RectangleFuzzySet

java.lang.Object
  |
  +--nrc.fuzzy.FuzzySet
        |
        +--nrc.fuzzy.LRFuzzySet
              |
              +--nrc.fuzzy.TrapezoidFuzzySet
                    |
                    +--nrc.fuzzy.RectangleFuzzySet
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class RectangleFuzzySet
extends TrapezoidFuzzySet
implements java.io.Serializable

Used to build specialized FuzzySets that have a rectangle shape. The diagram below shows a RectangleFuzzySet.



Note that the Constructors have been defined to make the generation of such curves as simple as possible. Only 2 points are required to define the rectangle shape.

This is a specialization of the TrapezoidFuzzySet where the left and right shapes are vertical lines (oneLeftX equals zeroLeftX and oneRightX equals zeroRightX).

See Also:
FuzzySet, LRFuzzySet, TrapezoidFuzzySet, Serialized Form

Nested Class Summary
 
Nested classes inherited from class nrc.fuzzy.FuzzySet
FuzzySet.UITools
 
Field Summary
 
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
RectangleFuzzySet(double leftX, double rightX)
          Generate a FuzzySet with an rectangle shape.
 
Methods inherited from class nrc.fuzzy.LRFuzzySet
checkParameters
 
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
 

Constructor Detail

RectangleFuzzySet

public RectangleFuzzySet(double leftX,
                         double rightX)
                  throws XValuesOutOfOrderException
Generate a FuzzySet with an rectangle shape.

Parameters:
leftX - the left x position of the rectangle
rightX - the right x position of the rectangle
Throws:
XValuesOutOfOrderException - if the x values are not in correct increasing order