|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sazonov.fuzzy.engine.LinguisticVariable
Class for linguistic variables.
| Method Summary | |
void |
add(MembershipFunction mFunction)
Add a membership function. |
void |
add(java.lang.String name,
double start,
double left_top,
double right_top,
double finish)
Add a membership function given by its name and trapezoidal region. |
LinguisticVariable |
copy(java.lang.String name)
Return an copy of itself with a different name. |
double |
defuzzify()
Defuzzify using centroid. |
MembershipFunction |
getMembershipFunctionByName(java.lang.String name)
Return a MembershipFunction belonging to this LinguisticVariable by its name. |
java.lang.String |
getName()
Return the name of this linguistic variable |
void |
reset()
Reset all rules that have previously fired for this LinguisticVariable. |
void |
setInputValue(double value)
Set input value for this lingustic variable. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void add(MembershipFunction mFunction)
mFunction - MembershipFunction to be added.
public void add(java.lang.String name,
double start,
double left_top,
double right_top,
double finish)
name - Name of the membership function.start - Min support value.left_top - Min top value.right_top - Max top value.finish - Max support value.public LinguisticVariable copy(java.lang.String name)
name - the name of the copy
public double defuzzify()
throws NoRulesFiredException
fuzzyEngine.NoRulesFiredException - This exception is thrown if no rules have
fired for this Linguistic Variable.
NoRulesFiredExceptionpublic java.lang.String getName()
public MembershipFunction getMembershipFunctionByName(java.lang.String name)
name - java.lang.String Name of the membership function.
public void reset()
public void setInputValue(double value)
value - double
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||