nrc.fuzzy
Class RFuzzySet

java.lang.Object
  |
  +--nrc.fuzzy.FuzzySet
        |
        +--nrc.fuzzy.RFuzzySet
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
RightGaussianFuzzySet, RightLinearFuzzySet, ZFuzzySet

public class RFuzzySet
extends FuzzySet
implements java.io.Serializable

Used to build specialized FuzzySets that in general have membership values of 1 at the left edge and 0 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 ZFuzzySet or RightLinearFuzzySet. The shape of the curves between the left and right x values of an RFuzzySet are determined by the function specified. This function will be a class that implements the FuzzySetFunction Interface. In particular the ZFuzzySet class uses the ZFunction class to create a Z-shaped curve between the left and right x values.

The diagram below shows the concept of the RFuzzySet.



The code below shows how the ZFuzzySet constructor is defined.

  private static ZFunction szf = new ZFunction();

  public ZFuzzySet(double leftEdge, double rightEdge) throws XValuesOutOfOrderException 
  {
      super(leftEdge, rightEdge, szf);
  }
 

See Also:
FuzzySet, LRFuzzySet, ZFuzzySet, ZFunction, RightLinearFunction, RightLinearFuzzySet, 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
RFuzzySet(double leftX, double rightX, nrc.fuzzy.FuzzySetFunction rightFunction)
          Create an RFuzzySet using the FuzzySetFunction supplied to construct it.
 
Method Summary
protected  void checkParameters(double leftX, double rightX)
          Checks that left x value is less than or equal to right x value.
 
Methods inherited from class nrc.fuzzy.FuzzySet
appendSetPoint, appendSetPoint, checkXValueOrder, checkYValueRange, concat, concat, confineToXBounds, copyFuzzySet, equals, findMaxYOverlapValue, fuzzyComplement, fuzzyEqual, fuzzyIntersection, fuzzyIntersection, fuzzyIntersectionUnion, fuzzyNormalize, fuzzyScale, fuzzySum, fuzzySum, fuzzyUnion, fuzzyUnion, getAlphaCut, 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

RFuzzySet

public RFuzzySet(double leftX,
                 double rightX,
                 nrc.fuzzy.FuzzySetFunction rightFunction)
          throws XValuesOutOfOrderException
Create an RFuzzySet using the FuzzySetFunction supplied to construct it.

Parameters:
leftX - Left x value (where membership is 1) of the R (right sided) FuzzySet
rightX - Right x value (where membership is 0) of the R (right sided) FuzzySet
rightFunction - Function that will generate the shaped right side for the FuzzySet
Throws:
XValuesOutOfOrderException
Method Detail

checkParameters

protected void checkParameters(double leftX,
                               double rightX)
                        throws XValuesOutOfOrderException
Checks that left x value is less than or equal to right x value.

Parameters:
leftX - Left x value (where membership is 1) of the R (right sided) FuzzySet
rightX - Right x value (where membership is 0) of the R (right sided) FuzzySet
Throws:
XValuesOutOfOrderException