jmetal.qualityIndicator
Class Spread
java.lang.Object
jmetal.qualityIndicator.Spread
public class Spread
- extends java.lang.Object
This class implements the spread quality indicator.
It can be used also as command line program just by typing:
"java jmetal.qualityIndicator.Spread ".
This metric is only applicable to two bi-objective problems.
Reference: Deb, K., Pratap, A., Agarwal, S., Meyarivan, T.: A fast and
elitist multiobjective genetic algorithm: NSGA-II. IEEE Trans.
on Evol. Computation 6 (2002) 182-197
Constructor Summary |
Spread()
Constructor. |
Method Summary |
static void |
main(java.lang.String[] args)
This class can be invoqued from the command line. |
double |
spread(double[][] front,
double[][] trueParetoFront,
int numberOfObjectives)
Calculates the Spread metric. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
utils_
public static MetricsUtil utils_
Spread
public Spread()
- Constructor.
Creates a new instance of a Spread object
spread
public double spread(double[][] front,
double[][] trueParetoFront,
int numberOfObjectives)
- Calculates the Spread metric. Given the front, the true pareto front as
double []
, and the number of objectives,
the method returns the value of the metric.
- Parameters:
front
- The front.trueParetoFront
- The true pareto front.numberOfObjectives
- The number of objectives.
main
public static void main(java.lang.String[] args)
- This class can be invoqued from the command line. Three params are required:
1) the name of the file containing the front,
2) the name of the file containig the true Pareto front
3) the number of objectives