|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--nrc.fuzzy.SetPoint
The SetPoint
class provides a means for representing a point
with an x and y coordinate. In this implementation of fuzzy logic, the y
value represents the membership value of the FuzzyValue/FuzzySet at that
particular x. The name SetPoint came from the fact that FuzzySets are
made up of sets of such points.
Parameters
,
Serialized FormField Summary | |
protected double |
x
The x value of this SetPoint. |
protected double |
y
The membership value (graphically, the y value) of the point x in a FuzzySet. |
Constructor Summary | |
SetPoint()
Constructs a new SetPoint object initialized with its x and y values equal to zero. |
|
SetPoint(double x,
double y)
Constructs a new SetPoint object which has x and y values equal to the double arguments, x and y . |
|
SetPoint(nrc.fuzzy.SetPoint a)
Constructs a new SetPoint object which has x and y values equal to that of the SetPoint argument. |
Method Summary | |
boolean |
equals(nrc.fuzzy.SetPoint a)
Tests whether the SetPoint argument is equal to this SetPoint. |
double |
getX()
Gets the x value of the SetPoint. |
double |
getY()
Gets the y value of the SetPoint. |
protected boolean |
inHorizontalAlignment(nrc.fuzzy.SetPoint a)
Tests whether the SetPoint argument is in horizontal alignment with this SetPoint. |
protected boolean |
inVerticalAlignment(nrc.fuzzy.SetPoint a)
Tests whether the SetPoint argument is in vertical alignment with this SetPoint. |
void |
setX(double x)
Sets the x value of the SetPoint. |
void |
setXY(double x,
double y)
Sets the x and y values of the SetPoint. |
void |
setY(double y)
Sets the y value of the SetPoint. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected double x
protected double y
Constructor Detail |
public SetPoint()
public SetPoint(nrc.fuzzy.SetPoint a)
a
- the SetPoint whose x and y values will be used to initialize
the x and y values of the newly created SetPoint objectpublic SetPoint(double x, double y)
x
and y
.
x
- the double value used to initialize the x value of the
new SetPoint objecty
- the double value used to initialize the y value of the
new SetPoint objectMethod Detail |
public boolean equals(nrc.fuzzy.SetPoint a)
a
- the SetPoint to compare this SetPoint to
true
if the x and y variables of the two
SetPoints are equal within the value of Parameters.FUZZY_TOLERANCE.protected boolean inVerticalAlignment(nrc.fuzzy.SetPoint a)
a
- the SetPoint whose x value is to be compared to
the x value of this SetPoint
true
if the x values of both SetPoints
are equal within fuzzy tolerance.protected boolean inHorizontalAlignment(nrc.fuzzy.SetPoint a)
a
- the SetPoint whose y value is to be compared to
the y value of this SetPoint
true
if the y values of both SetPoints
are equal within fuzzy tolerance.public void setXY(double x, double y)
x
- the double value to be assigned to the x variable of this SetPointy
- the double value to be assigned to the y variable of this SetPointpublic void setX(double x)
x
- the double value to be assigned to the x variable of this SetPointpublic void setY(double y)
y
- the double value to be assigned to the y variable of this SetPointpublic double getX()
public double getY()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |