nrc.fuzzy
Class NotModifier

java.lang.Object
  |
  +--nrc.fuzzy.ModifierFunction
        |
        +--nrc.fuzzy.NotModifier
All Implemented Interfaces:
java.io.Serializable

public class NotModifier
extends ModifierFunction
implements java.io.Serializable

Concrete implementaion of the not modifier, which will give the complement of a FuzzyValue/FuzzySet. Consider the following example:

Description Visual Representation
Unmodified fuzzy value:
  • this is the unmodified fuzzy value to which the modifier is applied.
Not:
  • the NOT modifier returns the complement of the FuzzyValue passed as its argument.

See Also:
ModifierFunction, Modifiers, Serialized Form

Field Summary
 
Fields inherited from class nrc.fuzzy.ModifierFunction
DELTA_X, DELTA_Y, deltaX, deltaY, NUMBER_OF_POINTS, numberOfPoints, precisionControlType
 
Constructor Summary
NotModifier()
           
NotModifier(java.lang.String s)
           
 
Method Summary
 nrc.fuzzy.FuzzySet call(nrc.fuzzy.FuzzySet a)
          Takes the complement of the FuzzySet argument.
 nrc.fuzzy.FuzzyValue call(nrc.fuzzy.FuzzyValue fv)
          Takes the complement of the FuzzyValue argument.
 
Methods inherited from class nrc.fuzzy.ModifierFunction
concentrateDilute, expandSet, getName, setDeltaXPrecision, setDeltaYPrecision, setNumberOfPointsPrecision, setPrecisionControlType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotModifier

public NotModifier()

NotModifier

public NotModifier(java.lang.String s)
Method Detail

call

public nrc.fuzzy.FuzzyValue call(nrc.fuzzy.FuzzyValue fv)
Takes the complement of the FuzzyValue argument. Mathematically (NOT), u(x) = 1 - u(x), where u(x) gives the membership value, u being the membership function.

Specified by:
call in class ModifierFunction
Parameters:
fv - the FuzzyValue to return the complement of
Returns:
a new FuzzyValue object representing the complement of the FuzzyValue argument. This new FuzzyValue object has the same FuzzyVariable as the FuzzyValue argument.
See Also:
ModifierFunction

call

public nrc.fuzzy.FuzzySet call(nrc.fuzzy.FuzzySet a)
Takes the complement of the FuzzySet argument. Mathematically (NOT), u(x) = 1 - u(x), where u(x) gives the membership value, u being the membership function.

Specified by:
call in class ModifierFunction
Parameters:
a - the fuzzy set to be modified
Returns:
a new FuzzySet object representing the complement of the FuzzySet argument.
See Also:
ModifierFunction