nrc.fuzzy
Class SlightlyModifier

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

public class SlightlyModifier
extends ModifierFunction
implements java.io.Serializable

Concrete implementaion of the slightly modifier. Consider the following example:

Description Visual Representation
Unmodified fuzzy value:
  • this is the unmodified fuzzy value to which the modifier is applied.
Slightly:
  • the SLIGHTLY modifier returns the expanded FuzzyValue A passed as its argument, having performed the following modifications on it:
    • intensify [ norm (plus A AND not very A) ]
Consider the partial breakdown, shown below, of this example. On the left, directly below, is shown this FuzzyValue after applying the plus modifier. On the right is this FuzzyValue after applying both the not and the very modifiers. Below these is depicted plus FuzzyValue AND not very FuzzyValue, showing the portion of the FuzzyValue that is selected which intuitively matches our linguistic understanding of the word "slightly".
After slightly modifier applied:
  • the SLIGHTLY modifier returns the expanded FuzzyValue A passed as its argument, having performed the following modifications on it:
    • intensify [ norm (plus A AND not very A) ]
Consider the partial breakdown, shown below, of this example. On the left, directly below, is shown this FuzzyValue after applying the plus modifier. On the right is this FuzzyValue after applying both the not and the very modifiers. Below these is depicted plus FuzzyValue AND not very FuzzyValue, showing the portion of the FuzzyValue that is selected which intuitively matches our linguistic understanding of the word "slightly".
PLUS NOT VERY
Now, put them together.
PLUS FuzzyValue AND NOT VERY FuzzyValue

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
SlightlyModifier()
           
SlightlyModifier(java.lang.String s)
           
 
Method Summary
 nrc.fuzzy.FuzzySet call(nrc.fuzzy.FuzzySet a)
          Returns a new FuzzySet object which represents the FuzzySet argument after the application of the slightly modifier.
 nrc.fuzzy.FuzzyValue call(nrc.fuzzy.FuzzyValue fv)
          Returns a new FuzzyValue object which represents the FuzzyValue argument after the application of the slightly modifier.
 
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

SlightlyModifier

public SlightlyModifier()

SlightlyModifier

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

call

public nrc.fuzzy.FuzzyValue call(nrc.fuzzy.FuzzyValue fv)
Returns a new FuzzyValue object which represents the FuzzyValue argument after the application of the slightly modifier. The slightly modifier uses the following sequence of modifiers and operators: Where A is the FuzzyValue to which the modifier slightly is being applied.

Specified by:
call in class ModifierFunction
Parameters:
fv - the FuzzyValue to modify with the slightly hedge
Returns:
a new FuzzyValue object representing FuzzyValue argument after the application of the slightly hedge. 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)
Returns a new FuzzySet object which represents the FuzzySet argument after the application of the slightly modifier. The slightly modifier uses the following sequence of modifiers and operators: Where A is the FuzzySet to which the modifier slightly is being applied.

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