public class QualityMeasures
extends java.lang.Object
Defines the quality measures of the individual
Constructor and Description |
---|
QualityMeasures(int nobj)
Creates a new instance of QualityMeasures
|
Modifier and Type | Method and Description |
---|---|
void |
Copy(QualityMeasures qmeasures,
int nobj)
Copy in this object the values of qmeasures
|
double |
getCnf()
Gets the value of the confidence
|
int |
getNumObjectives()
Returns the num_objetivos of the individual
|
double |
getObjectiveValue(int pos)
Gets the value of the objective pos
|
void |
Print(java.lang.String nFile,
Genetic AG)
Prints the measures
|
void |
setCnf(double acnf)
Sets the value of the confidence
|
void |
setNumObjectives(int a)
Sets the num_objetivos of the individual
|
void |
setObjectiveValue(int pos,
double value)
Sets the value of the objective pos
|
public QualityMeasures(int nobj)
Creates a new instance of QualityMeasures
nobj
- Number of objectivespublic int getNumObjectives()
Returns the num_objetivos of the individual
public void setNumObjectives(int a)
Sets the num_objetivos of the individual
a
- Number of objectivespublic double getObjectiveValue(int pos)
Gets the value of the objective pos
pos
- Position of the objectivepublic void setObjectiveValue(int pos, double value)
Sets the value of the objective pos
pos
- Position of the objectivevalue
- Value of the objectivepublic double getCnf()
Gets the value of the confidence
public void setCnf(double acnf)
Sets the value of the confidence
acnf
- Value of the confidencepublic void Copy(QualityMeasures qmeasures, int nobj)
Copy in this object the values of qmeasures
qmeasures
- Quality measuresnobj
- Number of objectivespublic void Print(java.lang.String nFile, Genetic AG)
Prints the measures
nFile
- Fichero to write the quality measuresAG
- Genetic algorithm