public class T1_Rulebase
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
T1_Rulebase() |
T1_Rulebase(int initialNumberOfRules)
Creates a new instance of T1_Rulebase
|
Modifier and Type | Method and Description |
---|---|
void |
addRule(T1_Rule r) |
java.util.TreeMap<Output,java.lang.Double> |
centroidDefuzzification()
Inference and Centroid Defuzzification
|
void |
changeRule(int ruleToBeChanged,
T1_Rule newRule) |
java.util.TreeMap<Output,java.lang.Double> |
evaluate(int defuzzificationType)
Returns defuzzified result of evaluating all rules in the rulebase.
|
java.lang.String |
getImplicationMethod()
Returns the current Implication Method as used for all rules.
|
java.lang.String |
getInferenceMethod()
Returns the current Inference Method as used for all rules.
|
Input[] |
getInputs()
This method assumes all rules use the same (and all) inputs.
|
int |
getNumberOfOutputs() |
int |
getNumberOfRules() |
java.util.HashMap<Output,double[]> |
getOutputSetBuffers()
Returns the outputSetBuffers
|
T1_Rule |
getRule(int ruleNumber) |
java.util.Vector<T1_Rule> |
getRules() |
java.util.TreeMap<Output,java.lang.Double> |
heightDefuzzification()
Inference and Height Defuzzification
|
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.
|
void |
setInferenceMethod(byte inferenceMethod)
Sets the inference method, where by inference, we mean the implementation
of applying the rule's firing strength to the consequent.
|
java.lang.String |
toString() |
public T1_Rulebase(int initialNumberOfRules)
initialNumberOfRules
- Initialises the rules vector of the object.public T1_Rulebase()
public void addRule(T1_Rule r)
public int getNumberOfOutputs()
public int getNumberOfRules()
public java.lang.String getInferenceMethod()
public void setInferenceMethod(byte inferenceMethod)
inferenceMethod
- Product (0) or Minimum (1) are supported.public java.lang.String getImplicationMethod()
public void setImplicationMethod(byte implicationMethod)
implicationMethod
- Product (0) or Minimum (1) are supported.public T1_Rule getRule(int ruleNumber)
public Input[] getInputs()
public java.util.HashMap<Output,double[]> getOutputSetBuffers()
public java.util.TreeMap<Output,java.lang.Double> evaluate(int defuzzificationType)
defuzzificationType
- The type of defuzzifier to be used: 0-Height
Defuzzification, 1-Centroid Defuzzification.discretizationLevel
- The discretization level to be employed (only
applies to centroid defuzzification)public java.util.TreeMap<Output,java.lang.Double> centroidDefuzzification()
public java.util.TreeMap<Output,java.lang.Double> heightDefuzzification()
public java.util.Vector<T1_Rule> getRules()
public void changeRule(int ruleToBeChanged, T1_Rule newRule)
public void removeRule(int ruleNumber)
public java.lang.String toString()
toString
in class java.lang.Object