public class QualityMeasures
extends java.lang.Object
Defines the quality measures of the individual
Constructor and Description |
---|
QualityMeasures(Genetic AG,
int number)
Creates a new instance of QualityMeasures
|
Modifier and Type | Method and Description |
---|---|
void |
copy(QualityMeasures medidas)
Copy the values of the quality measures
|
float |
getAccu()
Retuns the value of ACCU
|
float |
getCCnf()
Retuns the value of CCNF
|
float |
getComp()
Retuns the value of COMP
|
float |
getCove()
Retuns the value of
|
float |
getCSup()
Retuns the value of CSUP
|
float |
getFCnf()
Retuns the value of FCNF
|
float |
getFitness()
Retuns the value of the fitness
|
float |
getFSup()
Retuns the value of FSUP
|
java.lang.String |
getNameObj(int num)
Method to get the name of the objective indicated
|
int |
getNObjectives()
Retuns the number of objectives used
|
float |
getOSup()
Retuns the value of the original support measure
|
float |
getSign()
Retuns the value of SIGN
|
float |
getUnus()
Retuns the value of UNUS
|
float |
getValueObj(int num)
Method to get the value of the objective indicated
|
float |
getValueObj(java.lang.String name)
Method to get the value of the objective with the name indicated
|
void |
loadObjValues()
Method to load the values of the objectives from the computed
|
void |
print(java.lang.String nFile)
Prints the measures
|
void |
setAccu(float value)
Sets the value of ACCU
|
void |
setCCnf(float value)
Sets the value of CCNF
|
void |
setComp(float value)
Sets the value of COMP
|
void |
setCove(float value)
Sets the value of COVE
|
void |
setCSup(float value)
Sets the value of CSUP
|
void |
setFCnf(float value)
Sets the value of FCNF
|
void |
setFitness(float value)
Sets the value of fitness
|
void |
setFSup(float value)
Sets the value of FSUP
|
void |
setNameObj(int num,
java.lang.String name)
Method to set the name of the objective indicated
|
void |
setOSup(float value)
Sets the value of original support measure
|
void |
setSign(float value)
Sets the value of SIGN
|
void |
setUnus(float value)
Sets the value of UNUS
|
void |
setValueObj(int num,
float value)
Method to set the value of the objective indicated
|
public QualityMeasures(Genetic AG, int number)
Creates a new instance of QualityMeasures
AG
- Instance of the genetic algorithmnumber
- number of objectives to storepublic float getFitness()
Retuns the value of the fitness
public void setFitness(float value)
Sets the value of fitness
value
- Value of the fitnesspublic float getOSup()
Retuns the value of the original support measure
public void setOSup(float value)
Sets the value of original support measure
value
- Value of the original supportpublic float getFCnf()
Retuns the value of FCNF
public float getCCnf()
Retuns the value of CCNF
public float getCSup()
Retuns the value of CSUP
public float getFSup()
Retuns the value of FSUP
public float getComp()
Retuns the value of COMP
public float getAccu()
Retuns the value of ACCU
public float getCove()
Retuns the value of
public float getSign()
Retuns the value of SIGN
public float getUnus()
Retuns the value of UNUS
public void setFCnf(float value)
Sets the value of FCNF
value
- Value of FCNFpublic void setCCnf(float value)
Sets the value of CCNF
value
- Value of CCNFpublic void setCSup(float value)
Sets the value of CSUP
value
- Value of CSUPpublic void setFSup(float value)
Sets the value of FSUP
value
- Value of FSUPpublic void setComp(float value)
Sets the value of COMP
value
- Value of COMPpublic void setAccu(float value)
Sets the value of ACCU
value
- Value of ACCUpublic void setCove(float value)
Sets the value of COVE
value
- Value of COVEpublic void setSign(float value)
Sets the value of SIGN
value
- Value of SIGNpublic void setUnus(float value)
Sets the value of UNUS
value
- Value of UNUSpublic int getNObjectives()
Retuns the number of objectives used
public java.lang.String getNameObj(int num)
Method to get the name of the objective indicated
num
- Number of the objectivepublic void setNameObj(int num, java.lang.String name)
Method to set the name of the objective indicated
num
- Number of the objectivename
- Name of the objectivepublic float getValueObj(int num)
Method to get the value of the objective indicated
num
- Number of the objectivepublic float getValueObj(java.lang.String name)
Method to get the value of the objective with the name indicated
name
- Name of the objectivepublic void setValueObj(int num, float value)
Method to set the value of the objective indicated
num
- Number of the objectivevalue
- Value of the objectivepublic void loadObjValues()
Method to load the values of the objectives from the computed
public void copy(QualityMeasures medidas)
Copy the values of the quality measures
medidas
- QualityMeasures to copy in the objectpublic void print(java.lang.String nFile)
Prints the measures
nFile
- File to write the quality measures