nrc.fuzzy
Class AboveModifier

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

public class AboveModifier
extends ModifierFunction
implements java.io.Serializable

Concrete implementation of the above modifier. Consider the following example:

Description Visual Representation
Unmodified fuzzy value:
  • this is the unmodified fuzzy value to which the modifier is applied.
After Above modifier applied:
  • the ABOVE modifier identifies the first x value at which the maximum value is reached. All membership values below this point are set to zero and all membership values above this value are set to 1-y. For convex fuzzy sets this gives an intuitive result.

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
AboveModifier()
           
AboveModifier(java.lang.String s)
           
 
Method Summary
 nrc.fuzzy.FuzzySet call(nrc.fuzzy.FuzzySet a)
          Creates a new FuzzySet by applying the above modifier to an existing FuzzySet.
 nrc.fuzzy.FuzzyValue call(nrc.fuzzy.FuzzyValue fv)
          Creates a new FuzzyValue by applying the above modifier to an existing FuzzyValue.
 
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

AboveModifier

public AboveModifier()

AboveModifier

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

call

public nrc.fuzzy.FuzzyValue call(nrc.fuzzy.FuzzyValue fv)
Creates a new FuzzyValue by applying the above modifier to an existing FuzzyValue. Above identifies the first x value at which the maximum value is reached. All membership values below this point are set to zero and all membership values above this value are set to 1-y. For convex fuzzy sets this gives an intuitive result.

Specified by:
call in class ModifierFunction
Parameters:
fv - the fuzzy value to which the below modifier is applied.
See Also:
ModifierFunction

call

public nrc.fuzzy.FuzzySet call(nrc.fuzzy.FuzzySet a)
Creates a new FuzzySet by applying the above modifier to an existing FuzzySet. Above identifies the first x value at which the maximum value is reached. All membership values below this point are set to zero and all membership values above this value are set to 1-y. For convex fuzzy sets this gives an intuitive result.

Specified by:
call in class ModifierFunction
Parameters:
a - the fuzzy set to be modified
See Also:
ModifierFunction