public class DataBase
extends java.lang.Object
Title: DataBase
Description: Fuzzy Data Base
Copyright: Copyright KEEL (c) 2008
Company: KEEL
Constructor and Description |
---|
DataBase()
Default constructor.
|
DataBase(java.lang.String dataBaseFile,
myDataset train)
This method builds the database, creating the initial linguistic partitions
|
Modifier and Type | Method and Description |
---|---|
int[] |
getnLabels()
Returns the number of labels of each variable.
|
int |
getnLabelsReal()
Returns the number of real labels
|
double |
matching(int variable,
int label,
double value)
Returns the fuzzied value for given variable, label and value.
|
int |
numLabels(int variable)
Returns the number of labels of a given variable.
|
int |
numVariables()
Returns the number of variables.
|
int |
posValue(int variable,
java.lang.String value)
Returns the position of a given value of a given variable.
|
java.lang.String |
print(int var,
int label)
Returns the name of a given label id of a given variable id.
|
public DataBase()
public DataBase(java.lang.String dataBaseFile, myDataset train)
This method builds the database, creating the initial linguistic partitions
dataBaseFile
- Database file.train
- Training datasetpublic int numVariables()
public int getnLabelsReal()
public int numLabels(int variable)
variable
- variable id.public int[] getnLabels()
public int posValue(int variable, java.lang.String value)
variable
- given variable id.value
- value asked.public double matching(int variable, int label, double value)
variable
- given variable.label
- given label.value
- given value.public java.lang.String print(int var, int label)
var
- given label idlabel
- given variable id.