nrc.fuzzy
Class NormModifier

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

public class NormModifier
extends ModifierFunction
implements java.io.Serializable

Concrete implementaion of the norm modifier which normalizes a FuzzyValue/FuzzySet. Consider the following example:

Description Visual Representation
Norm:
  • the NORM modifier returns the normalized FuzzyValue. Normalizing the FuzzyValue refers to scaling it so that at least one point on the FuzzyValue has a membership value of 1.0. FuzzyValue passed as its argument.
Before Normalization

After Normalization

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
NormModifier()
           
NormModifier(java.lang.String s)
           
 
Method Summary
 nrc.fuzzy.FuzzySet call(nrc.fuzzy.FuzzySet a)
          Returns a new FuzzySet object which represents the normalized FuzzySet argument.
 nrc.fuzzy.FuzzyValue call(nrc.fuzzy.FuzzyValue fv)
          Returns a new FuzzyValue object which represents the normalized 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

NormModifier

public NormModifier()

NormModifier

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

call

public nrc.fuzzy.FuzzyValue call(nrc.fuzzy.FuzzyValue fv)
Returns a new FuzzyValue object which represents the normalized FuzzyValue argument. Normalization involves identifying the point in the FuzzyValue with the highest membership value and multiplying all the membership values in the FuzzyValue by a scale factor such that this highest point then has a membership value of 1.0.

Specified by:
call in class ModifierFunction
Parameters:
fv - the FuzzyValue to normalize
Returns:
a new FuzzyValue object which represents the FuzzyValue argument after it has been normalized. 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 normalized FuzzySet argument. Normalization involves identifying the point in the FuzzySet with the highest membership value and multiplying all the membership values in the FuzzySet by a scale factor such that this highest point then has a membership value of 1.0.

Specified by:
call in class ModifierFunction
Parameters:
a - the fuzzy set to be modified
Returns:
a new FuzzySet object which represents the FuzzySet argument after it has been normalized.
See Also:
ModifierFunction