public class GenT2z_Rulebase
extends java.lang.Object
Constructor and Description |
---|
GenT2z_Rulebase(int initialNumberOfRules)
Creates a new instance of GenT2_Rulebase
|
Modifier and Type | Method and Description |
---|---|
void |
addRule(GenT2z_Rule rule) |
void |
addRules(GenT2z_Rule[] r) |
void |
changeRule(int ruleToBeChanged,
GenT2z_Rule newRule) |
boolean |
containsRule(GenT2z_Rule rule) |
java.util.TreeMap<Output,java.lang.Double> |
evaluate(int typeReductionType)
The current evaluate function is functional but inefficient.
|
java.util.TreeMap<Output,java.lang.Object[]> |
evaluateGetCentroid(int typeReductionType)
Returns the output of the FLS after type-reduction, i.e. the centroid.
|
GenT2zEngine_Intersection |
get_GenT2zEngine_Intersection() |
GenT2zEngine_Union |
get_GenT2zEngine_Union() |
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.
|
IT2_Rulebase[] |
getIT2Rulebases()
Returns the whole zSlices based rulebase as a series of interval type-2
rule bases (one per zLevel) which can then be computed in parallel.
|
int |
getNumberOfRules() |
java.util.TreeMap<Output,GenT2zMF_Interface> |
getOverallOutput() |
GenT2z_Rule |
getRule(int number) |
java.util.ArrayList<GenT2z_Rule> |
getRules() |
java.util.ArrayList<GenT2z_Rule> |
getRulesWithAntecedents(GenT2z_Antecedent[] antecedents)
Returns all rules with a matching (i.e. equal) set of antecedents.
|
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 GenT2z_Rulebase(int initialNumberOfRules)
public void addRule(GenT2z_Rule rule)
public void addRules(GenT2z_Rule[] r)
public java.util.ArrayList<GenT2z_Rule> getRules()
public int getFuzzyLogicType()
public GenT2zEngine_Intersection get_GenT2zEngine_Intersection()
public GenT2zEngine_Union get_GenT2zEngine_Union()
public java.util.TreeMap<Output,GenT2zMF_Interface> getOverallOutput()
public java.util.TreeMap<Output,java.lang.Object[]> evaluateGetCentroid(int typeReductionType)
typeReductionType
- public java.util.TreeMap<Output,java.lang.Double> evaluate(int typeReductionType)
typeReductionType
- 0: Center Of Sets, 1: CentroiddiscretizationLevel
- The discretization level on the xAxispublic IT2_Rulebase[] getIT2Rulebases()
typeReductionMethod
- The type-reduction method to be used at the IT2 level
0: Center Of Sets, 1: Centroid.discretizationLevelXAxis
- The number of discretizations to be used at the IT2 level.public GenT2z_Rule getRule(int number)
public void changeRule(int ruleToBeChanged, GenT2z_Rule newRule)
public void removeRule(int ruleNumber)
public int getNumberOfRules()
public boolean containsRule(GenT2z_Rule rule)
public java.util.ArrayList<GenT2z_Rule> getRulesWithAntecedents(GenT2z_Antecedent[] antecedents)
antecedents
- 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