nrc.fuzzy
Interface FuzzySetFunction

All Known Implementing Classes:
LeftGaussianFunction, LeftLinearFunction, RightGaussianFunction, RightLinearFunction, SFunction, ZFunction

public interface FuzzySetFunction

An interface that is implemented by classes that will generate FuzzySets between 2 X values. For example the LeftLinearFunction class will generate a fuzzy set representing a straight line with a membership value of 0 at the left and a membership value of 1 at the right. The RightLinearFunction class is similar with the left value of 1 and right value of zero. The SFunction class generates a FuzzySet in the shape of an 'S' (lower left 0, upper right 1) and the ZFunction class generates a FuzzySet in the shape of a 'Z' (upper left 1, lower right 0). In turn the classes LFuzzySet, RFuzzySet and LRFuzzySet use instances of these implementors of the FuzzySetFunction to create pieces of more complex fuzzy set shapes.

See Also:
LeftLinearFunction, RightLinearFunction, SFunction, ZFunction, LFuzzySet, RFuzzySet, LRFuzzySet

Method Summary
 nrc.fuzzy.FuzzySet generateFuzzySet(double leftX, double rightX)
          Implements a method that will generate a FuzzySet with x values between a leftmost x value and a rightmost x value.
 nrc.fuzzy.FuzzySet generateFuzzySet(double leftX, double rightX, int numPoints)
          Implements a method that will generate a FuzzySet with x values between a left x and a right x.
 

Method Detail

generateFuzzySet

public nrc.fuzzy.FuzzySet generateFuzzySet(double leftX,
                                           double rightX)
Implements a method that will generate a FuzzySet with x values between a leftmost x value and a rightmost x value.

Parameters:
leftX - the leftmost X value of the returned FuzzySet.
rightX - the rightmost X value of the returned FuzzySet.
Returns:
a FuzzySet with X values between leftX and rightX

generateFuzzySet

public nrc.fuzzy.FuzzySet generateFuzzySet(double leftX,
                                           double rightX,
                                           int numPoints)
Implements a method that will generate a FuzzySet with x values between a left x and a right x.

Parameters:
leftX - the leftmost X value of the returned FuzzySet.
rightX - the rightmost X value of the returned FuzzySet.
numPoints - the returned FuzzySet should have numPoints in it (but this is dependent on the FuzzySetFunction implementation)
Returns:
a FuzzySet with X values between leftX and rightX