Class Spread

  extended by 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

Field Summary
static MetricsUtil utils_
Constructor Summary
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

Field Detail


public static MetricsUtil utils_
Constructor Detail


public Spread()
Constructor. Creates a new instance of a Spread object

Method Detail


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.

front - The front.
trueParetoFront - The true pareto front.
numberOfObjectives - The number of objectives.


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