|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--nrc.fuzzy.LeftLinearFunction
An implementation of the FuzzySetFunction interface to provide a class with the ability to generate a FuzzySet that is a straight line (linear) from membership value 0 on the left to 1 on the right. This class is typically used when constructing instances of the classes LFuzzySet and LRFuzzySet.
LFuzzySet
,
LRFuzzySet
,
TrapezoidFuzzySet
,
Serialized FormConstructor Summary | |
LeftLinearFunction()
Create an instance of the LeftLinearFunction class. |
|
LeftLinearFunction(int numPoints)
Create an instance of the LeftLinearFunction class with the default number of points in the FuzzySets generated by the generateFuzzySet(double leftX, double rightX) method set to numPoints. |
Method Summary | |
nrc.fuzzy.FuzzySet |
generateFuzzySet(double leftX,
double rightX)
Generates a FuzzySet that is a straight line (linear) from with membership value 0 on the left to 1 on the right. |
nrc.fuzzy.FuzzySet |
generateFuzzySet(double leftX,
double rightX,
int numPoints)
Generates a FuzzySet that is a straight line (linear) from with membership value 0 on the left to 1 on the right. |
static void |
setNumberOfPoints(int numPoints)
Change the static variable defaultNumPoints to a new value (will be set to 2 if an attempt is made to set it to < 2). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LeftLinearFunction()
public LeftLinearFunction(int numPoints)
numPoints
- the default number of points in the FuzzyValues created
by the generateFuzzySet(double leftX, double rightX) methodMethod Detail |
public nrc.fuzzy.FuzzySet generateFuzzySet(double leftX, double rightX)
generateFuzzySet
in interface FuzzySetFunction
leftX
- the left most X value of the FuzzySet (where membership value is 0)rightX
- the right most X value of the FuzzySet (where membership value is 1)
public nrc.fuzzy.FuzzySet generateFuzzySet(double leftX, double rightX, int numPoints)
generateFuzzySet
in interface FuzzySetFunction
leftX
- the left most X value of the FuzzySet (where membership value is 0)rightX
- the right most X value of the FuzzySet (where membership value is 1)numPoints
- the number of points to generate for the set (if < 2 then it
will be set to 2)
public static void setNumberOfPoints(int numPoints)
numPoints
- the new value for the static variable defaultNumPoints
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |