public class Structure
extends java.lang.Object
Constructor and Description |
---|
Structure()
Default Constructor
|
Structure(int dID,
int y,
int cRule,
int wRule)
Parameters Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getcRule()
It returns the position of the best rule that correctly classifies the example stored in the structure
|
int |
getdID()
It returns the position in the training dataset for the example stored in the structure
|
int |
getwRule()
It returns the position of the first rule that wrongly classifies the example stored in the structure
|
int |
gety()
It returns the class for the example stored in the structure
|
void |
setcRule(int cRule)
It sets the position of the best rule that correctly classifies the example stored in the structure
|
void |
setdID(int dID)
It sets in the structure the position in the training dataset of the wanted example
|
void |
setwRule(int wRule)
It sets the position of the first rule that wrongly classifies the example stored in the structure
|
void |
sety(int y)
It sets in the structure the class of the example
|
public Structure()
Default Constructor
public Structure(int dID, int y, int cRule, int wRule)
Parameters Constructor
dID
- Position of the correctly classified exampley
- Class of the "dID" examplecRule
- Position in the rule set for the rule that correctly classifies the "dID" instancewRule
- Position in the rule set for the first rule that wrongly classifies the "dID" instancepublic int getdID()
It returns the position in the training dataset for the example stored in the structure
public void setdID(int dID)
It sets in the structure the position in the training dataset of the wanted example
dID
- Position in the training dataset of the wanted examplepublic int gety()
It returns the class for the example stored in the structure
public void sety(int y)
It sets in the structure the class of the example
y
- Class of the examplepublic int getcRule()
It returns the position of the best rule that correctly classifies the example stored in the structure
public void setcRule(int cRule)
It sets the position of the best rule that correctly classifies the example stored in the structure
cRule
- Position of the best rule that correctly classifies the example stored in the structurepublic int getwRule()
It returns the position of the first rule that wrongly classifies the example stored in the structure
public void setwRule(int wRule)
It sets the position of the first rule that wrongly classifies the example stored in the structure
wRule
- Position of the first rule that wrongly classifies the example stored in the structure