|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jFuzzyLogic.rule.Variable
public class Variable
Fuzzy variable
Field Summary | |
---|---|
(package private) double |
defaultValue
Default value, when no change |
(package private) Defuzzifier |
defuzzifier
Defuzzifier class |
(package private) double |
latestDefuzzifiedValue
Latest defuzzified value |
(package private) java.util.HashMap<java.lang.String,LinguisticTerm> |
linguisticTerms
Terms for this variable |
(package private) java.lang.String |
name
Variable name |
(package private) RuleAggregationMethod |
ruleAggregationMethod
Rule aggregation method |
(package private) double |
universeMax
Universe max (range max) |
(package private) double |
universeMin
Universe min (range min) |
(package private) double |
value
Variable's value |
Constructor Summary | |
---|---|
Variable(java.lang.String name)
Default constructor |
|
Variable(java.lang.String name,
double universeMin,
double universeMax)
Default constructor |
Method Summary | |
---|---|
Variable |
add(LinguisticTerm linguisticTerm)
Adds a termName to this variable |
Variable |
add(java.lang.String termName,
MembershipFunction membershipFunction)
Adds a termName to this variable |
org.jfree.chart.JFreeChart |
chart(boolean showIt)
Create a chart showing each linguistic term |
org.jfree.chart.JFreeChart |
chartDefuzzifier(boolean showIt)
Create a chart showing defuzzifier |
int |
compareTo(java.lang.Object anotherVariable)
|
double |
defuzzify()
Defuzzify this (output) variable |
void |
estimateUniverse()
Estimate unverse |
double |
getDefaultValue()
|
Defuzzifier |
getDefuzzifier()
|
double |
getLatestDefuzzifiedValue()
|
LinguisticTerm |
getLinguisticTerm(java.lang.String termName)
Get 'termName' linguistic term |
java.util.HashMap<java.lang.String,LinguisticTerm> |
getLinguisticTerms()
|
double |
getMembership(java.lang.String termName)
Evaluate 'termName' membershipfunction at 'value' |
MembershipFunction |
getMembershipFunction(java.lang.String termName)
Get 'termName' membershipfunction |
java.lang.String |
getName()
|
RuleAggregationMethod |
getRuleAggregationMethod()
|
double |
getUniverseMax()
|
double |
getUniverseMin()
|
double |
getValue()
|
java.util.Iterator |
iteratorLinguisticTermNames()
Get a 'linguisticTerms' iterator (by name) |
java.util.Iterator |
iteratorLinguisticTermNamesSorted()
Get a 'linguisticTerms' iterator (by name) |
void |
reset()
Reset defuzzifier (if any) |
void |
setDefaultValue(double defualtValue)
|
void |
setDefuzzifier(Defuzzifier deffuzifier)
|
void |
setLatestDefuzzifiedValue(double latestDefuzzifiedValue)
|
void |
setLinguisticTerms(java.util.HashMap<java.lang.String,LinguisticTerm> linguisticTerms)
|
void |
setName(java.lang.String name)
|
void |
setRuleAggregationMethod(RuleAggregationMethod ruleAggregationMethod)
|
void |
setUniverseMax(double universeMax)
|
void |
setUniverseMin(double universeMin)
|
void |
setValue(double value)
|
java.lang.String |
toString()
Printable string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
double defaultValue
Defuzzifier defuzzifier
double latestDefuzzifiedValue
java.util.HashMap<java.lang.String,LinguisticTerm> linguisticTerms
java.lang.String name
RuleAggregationMethod ruleAggregationMethod
double universeMax
double universeMin
double value
Constructor Detail |
---|
public Variable(java.lang.String name)
name
- : Variable's namepublic Variable(java.lang.String name, double universeMin, double universeMax)
name
- : Variable's nameMethod Detail |
---|
public Variable add(LinguisticTerm linguisticTerm)
linguisticTerm
- : Linguistic term to add
public Variable add(java.lang.String termName, MembershipFunction membershipFunction)
termName
- : FuzzyRuleTerm namemembershipFunction
- : membershipFunction for this termName
public org.jfree.chart.JFreeChart chart(boolean showIt)
showIt
- : If true, plot is displayedpublic org.jfree.chart.JFreeChart chartDefuzzifier(boolean showIt)
showIt
- : If true, plot is displayedpublic int compareTo(java.lang.Object anotherVariable)
compareTo
in interface java.lang.Comparable
public double defuzzify()
public void estimateUniverse()
public double getDefaultValue()
public Defuzzifier getDefuzzifier()
public double getLatestDefuzzifiedValue()
public LinguisticTerm getLinguisticTerm(java.lang.String termName)
public java.util.HashMap<java.lang.String,LinguisticTerm> getLinguisticTerms()
public double getMembership(java.lang.String termName)
public MembershipFunction getMembershipFunction(java.lang.String termName)
public java.lang.String getName()
public RuleAggregationMethod getRuleAggregationMethod()
public double getUniverseMax()
public double getUniverseMin()
public double getValue()
public java.util.Iterator iteratorLinguisticTermNames()
public java.util.Iterator iteratorLinguisticTermNamesSorted()
public void reset()
public void setDefaultValue(double defualtValue)
public void setDefuzzifier(Defuzzifier deffuzifier)
public void setLatestDefuzzifiedValue(double latestDefuzzifiedValue)
public void setLinguisticTerms(java.util.HashMap<java.lang.String,LinguisticTerm> linguisticTerms)
public void setName(java.lang.String name)
public void setRuleAggregationMethod(RuleAggregationMethod ruleAggregationMethod)
public void setUniverseMax(double universeMax)
public void setUniverseMin(double universeMin)
public void setValue(double value)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |