nrc.fuzzy
Class SingletonFuzzySet

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

public class SingletonFuzzySet
extends TriangleFuzzySet
implements java.io.Serializable

Used to build specialized FuzzySets that have a single value with membership value of 1.0. Note that such a FuzzySet requires 3 points in it's definition:
e.g. (x,0) (x,1) (x,0)
Also note that the definition of a FuzzySet with only 1 point defines a horizontal line at the specifiec membership value and not a singleton value.
The diagram below shows a SingletonFuzzySet.



Note that the Constructors have been defined to make the generation of such curves as simple as possible. Only 1 point is required to define the singleton shape.

This is a specialization of the TriangleFuzzySet where the left, middle and right x values are the same.

See Also:
FuzzySet, LRFuzzySet, TriangleFuzzySet, 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
SingletonFuzzySet(double xValue)
          Generate a FuzzySet with an triangle 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

SingletonFuzzySet

public SingletonFuzzySet(double xValue)
                  throws XValuesOutOfOrderException
Generate a FuzzySet with an triangle shape.

Throws:
XValuesOutOfOrderException - if the x values are not in correct increasing order