|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jmetal.qualityIndicator.R2
public class R2
Field Summary | |
---|---|
MetricsUtil |
utils_
|
Constructor Summary | |
---|---|
R2()
Constructor Creates a new instance of the R2 indicator for a problem with two objectives and 100 lambda vectors |
|
R2(int nVectors)
Constructor Creates a new instance of the R2 indicator for a problem with two objectives and N lambda vectors |
|
R2(int nObj,
java.lang.String file)
Constructor Creates a new instance of the R2 indicator for nDimensiosn It loads the weight vectors from the file fileName |
Method Summary | |
---|---|
int |
getBest(double[][] approximation,
double[][] paretoFront)
Returns the element contributing the most to the R2 indicator |
int |
getBest(SolutionSet set)
Returns the element contributing the most to the R2 |
int[] |
getNBest(double[][] approximation,
double[][] paretoFront,
int N)
Returns the element contributing the most to the R2 indicator |
int[] |
getNBest(SolutionSet set,
int N)
Returns the indexes of the N best solutions according to this indicator |
int |
getWorst(double[][] approximation,
double[][] paretoFront)
Returns the element contributing the less to the R2 |
int |
getWorst(SolutionSet set)
Returns the element contributing the less to the R2 |
static void |
main(java.lang.String[] args)
This class can be call from the command line. |
double |
R2(double[][] approximation,
double[][] paretoFront)
Returns the R2 indicator value of a given front |
double |
R2(SolutionSet set)
Returns the R2 indicator of a given population, using as a reference point 0, 0. |
double |
R2Without(SolutionSet set,
int index)
Returns the R2 indicator value of a given front |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public MetricsUtil utils_
Constructor Detail |
---|
public R2()
public R2(int nVectors)
public R2(int nObj, java.lang.String file)
Method Detail |
---|
public int getBest(double[][] approximation, double[][] paretoFront)
front
- The fronttrueParetoFront
- The true Pareto frontnumberOfObjectives
- The number of objectiveslambda
- A vector containing the lambda vectors for R2public int getWorst(double[][] approximation, double[][] paretoFront)
front
- The fronttrueParetoFront
- The true Pareto frontnumberOfObjectives
- The number of objectiveslambda
- A vector containing the lambda vectors for R2public int getBest(SolutionSet set)
front
- A solution setpublic int getWorst(SolutionSet set)
front
- The fronttrueParetoFront
- The true Pareto frontpublic int[] getNBest(double[][] approximation, double[][] paretoFront, int N)
front
- The fronttrueParetoFront
- The true Pareto frontnumberOfObjectives
- The number of objectiveslambda
- A vector containing the lambda vectors for R2public int[] getNBest(SolutionSet set, int N)
SolutionSet
- the solution set for which the best solutions are computedpublic double R2(double[][] approximation, double[][] paretoFront)
front
- The fronttrueParetoFront
- The true Pareto frontnumberOfObjectives
- The number of objectiveslambda
- A vector containing the lambda vectors for R2public double R2(SolutionSet set)
set
-
public double R2Without(SolutionSet set, int index)
front
- The fronttrueParetoFront
- The true Pareto frontnumberOfObjectives
- The number of objectiveslambda
- A vector containing the lambda vectors for R2public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |