public class IT2_Rulebase
extends java.lang.Object
Constructor and Description |
---|
IT2_Rulebase() |
IT2_Rulebase(int initialNumberOfRules) |
Modifier and Type | Method and Description |
---|---|
void |
addRule(IT2_Rule r) |
void |
addRules(IT2_Rule[] r) |
java.util.TreeMap<Output,Tuple> |
doCOSTypeReduction() |
java.util.TreeMap<Output,Tuple> |
doReductionCentroid() |
java.util.TreeMap<Output,java.lang.Double> |
evaluate(int typeReductionType)
Returns typereduced & defuzzified result of evaluating all rules in the rulebase.
|
java.util.TreeMap<Output,java.lang.Object[]> |
evaluateGetCentroid(int typeReductionType)
Returns the output of the FLS after type-reduction, i.e.
|
int |
getFuzzyLogicType()
Returns the type of fuzzy logic that is employed.
|
java.lang.String |
getImplicationMethod()
Returns the current Implication Method as used for all rules.
|
Input[] |
getInputs()
This method assumes all rules use the same (and all) inputs.
|
int |
getNumberOfRules() |
java.util.Iterator<Output> |
getOutputIterator() |
java.util.Vector |
getRules() |
void |
removeRule(int ruleNumber) |
void |
setImplicationMethod(byte implicationMethod)
Sets the implication method, where by implication, we mean the implementation
of the AND logical connective between parts of the antecedent.
|
java.lang.String |
toString() |
public IT2_Rulebase()
public IT2_Rulebase(int initialNumberOfRules)
public Input[] getInputs()
public int getFuzzyLogicType()
public void addRule(IT2_Rule r)
public void addRules(IT2_Rule[] r)
public java.util.Vector getRules()
public int getNumberOfRules()
public java.util.Iterator<Output> getOutputIterator()
public java.util.TreeMap<Output,java.lang.Object[]> evaluateGetCentroid(int typeReductionType)
typeReductionType
- public java.util.TreeMap<Output,java.lang.Double> evaluate(int typeReductionType)
typeReductionType
- The type of type reducer to be used: 0-Center-Of-Sets,
1-Centroid.discretizationLevel
- The discretization level to be employed (only
applies to centroid type reducer)public void removeRule(int ruleNumber)
public java.lang.String getImplicationMethod()
public void setImplicationMethod(byte implicationMethod)
implicationMethod
- Product (0) or Minimum (1) are supported.public java.lang.String toString()
toString
in class java.lang.Object