public class RuleBase
extends java.lang.Object
Constructor and Description |
---|
RuleBase(DataBase dataBase,
int inferenceType,
int compatibilityType,
int ruleWeight,
java.lang.String[] names,
java.lang.String[] classes)
Rule Base Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
FRM(double[] example)
Fuzzy Reasoning Method
|
void |
Generation(myDataset train)
Rule Learning Mechanism for the Chi et al.'
|
java.lang.String |
printString()
It prints the rule base into an string
|
void |
writeFile(java.lang.String filename)
It writes the rule base into an ouput file
|
public RuleBase(DataBase dataBase, int inferenceType, int compatibilityType, int ruleWeight, java.lang.String[] names, java.lang.String[] classes)
dataBase
- DataBase the Data Base containing the fuzzy partitionsinferenceType
- int the inference type for the FRMcompatibilityType
- int the compatibility type for the t-normruleWeight
- int the rule weight heuristicnames
- String[] the names for the features of the problemclasses
- String[] the labels for the class attributespublic void Generation(myDataset train)
train
- myDataset the training data-setpublic java.lang.String printString()
public void writeFile(java.lang.String filename)
filename
- String the name of the output filepublic int FRM(double[] example)
example
- double[] the input example