public class TableDat
extends java.lang.Object
Class defined to store the information of the complete dataset
Constructor and Description |
---|
TableDat()
Creates a new instance of TableDat
|
Modifier and Type | Method and Description |
---|---|
int |
getClass(int pos)
Returns the class of the example in position pos
|
boolean |
getCovered(int pos)
Returns if the example in position pos is yet covered or not
|
float |
getDat(int numEx,
int pos)
Get the value of the variable "pos" of the example "numEj"
|
int |
getExamplesClass(int clas)
Returns the number of examples belonging to the class specified
|
int |
getExamplesClassObj()
Returns the number of examples of the target class
|
int |
getExamplesCovered()
Returns the number of examples covered by the rules generated
|
boolean |
getLost(TableVar Variables,
int example,
int pos)
Returns if the value of the gen of an example is a lost value or not
lost = max value of the variable + 1
|
int |
getNEx()
Returns the number of examples of the DataSet
|
void |
Load(InstanceSet Data,
TableVar Variables)
Creates and fill TableDat with the examples of the dataset
|
void |
setClass(int pos,
int val)
Sets the class of the example in position pos
|
void |
setCovered(int pos,
boolean val)
Sets to covered or not the the example in position pos
|
int |
setExamplesClassObj(int clas)
Stores and gets in "ej_clase_obj" the number of examples of the target class
|
void |
setExamplesCovered(int value)
Sets the number of examples covered by the rules generated
|
void |
setLost(TableVar Variables,
int example,
int pos)
Sets the value of the gen of an example as an lost value
lost = max value of the variable + 1
|
public int getNEx()
Returns the number of examples of the DataSet
public int getExamplesClass(int clas)
Returns the number of examples belonging to the class specified
clas
- A value of the target variablepublic int setExamplesClassObj(int clas)
Stores and gets in "ej_clase_obj" the number of examples of the target class
clas
- A value of the target variablepublic int getExamplesClassObj()
Returns the number of examples of the target class
public void setExamplesCovered(int value)
Sets the number of examples covered by the rules generated
value
- Number of examples coveredpublic int getExamplesCovered()
Returns the number of examples covered by the rules generated
public void setLost(TableVar Variables, int example, int pos)
Sets the value of the gen of an example as an lost value lost = max value of the variable + 1
Variables
- Structure of the variables for the datasetexample
- Position of the examplespos
- Position of the variablepublic boolean getLost(TableVar Variables, int example, int pos)
Returns if the value of the gen of an example is a lost value or not lost = max value of the variable + 1
Variables
- Structure of the variables for the datasetexample
- Position of the examplespos
- Position of the variablepublic void Load(InstanceSet Data, TableVar Variables)
Creates and fill TableDat with the examples of the dataset
Data
- Data structure of the datasetVariables
- Variables structure of the datasetpublic int getClass(int pos)
Returns the class of the example in position pos
pos
- Position of the examplepublic void setClass(int pos, int val)
Sets the class of the example in position pos
pos
- Position of the exampleval
- Value of the classpublic boolean getCovered(int pos)
Returns if the example in position pos is yet covered or not
pos
- Position of the examplepublic void setCovered(int pos, boolean val)
Sets to covered or not the the example in position pos
pos
- Position of the exampleval
- Value of the state of the examplepublic float getDat(int numEx, int pos)
Get the value of the variable "pos" of the example "numEj"
numEx
- Position of the examplepos
- Position of the variable