|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmetal.qualityIndicator.util.MetricsUtil
public class MetricsUtil
This class provides some utilities to compute quality indicators.
| Constructor Summary | |
|---|---|
MetricsUtil()
|
|
| Method Summary | |
|---|---|
double |
distance(double[] a,
double[] b)
This method returns the distance (taken the euclidean distance) between two points given as double [] |
double |
distanceToClosedPoint(double[] point,
double[][] front)
Gets the distance between a point and the nearest one in a given front (the front is given as double [][]) |
double |
distanceToNearestPoint(double[] point,
double[][] front)
Gets the distance between a point and the nearest one in a given front, and this distance is greater than 0.0 |
double[] |
getMaximumValues(double[][] front,
int noObjectives)
Gets the maximum values for each objectives in a given pareto front |
double[] |
getMinimumValues(double[][] front,
int noObjectives)
Gets the minimum values for each objectives in a given pareto front |
double[][] |
getNormalizedFront(double[][] front,
double[] maximumValue,
double[] minimumValue)
This method receives a pareto front and two points, one whit maximum values and the other with minimum values allowed, and returns a the normalized Pareto front. |
double[] |
hvContributions(int numberOfobjectives,
double[][] front)
Calculates how much hypervolume each point dominates exclusively. |
double[] |
hvContributions(SolutionSet[] populations)
Calculates the hv contribution of different populations. |
double[] |
hvContributions(SolutionSet archive,
SolutionSet[] populations)
Calculates the hv contribution of different populations. |
double[][] |
invertedFront(double[][] front)
This method receives a normalized pareto front and return the inverted one. |
double[][] |
readFront(java.lang.String path)
This method reads a Pareto Front for a file. |
SolutionSet |
readNonDominatedSolutionSet(java.lang.String path)
Reads a set of non dominated solutions from a file |
void |
readNonDominatedSolutionSet(java.lang.String path,
NonDominatedSolutionList solutionSet)
Reads a set of non dominated solutions from a file and store it in a existing non dominated solution set |
SolutionSet |
readSolutionSet(java.lang.String path)
Reads a set of non dominated solutions from a file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetricsUtil()
| Method Detail |
|---|
public double[][] readFront(java.lang.String path)
path - The path to the file that contains the pareto front
public double[] getMaximumValues(double[][] front,
int noObjectives)
front - The pareto frontnoObjectives - Number of objectives in the pareto front
public double[] getMinimumValues(double[][] front,
int noObjectives)
front - The pareto frontnoObjectives - Number of objectives in the pareto front
public double distance(double[] a,
double[] b)
double []
a - A pointb - A point
public double distanceToClosedPoint(double[] point,
double[][] front)
double [][])
point - The pointfront - The front that contains the other points to calculate the
distances
public double distanceToNearestPoint(double[] point,
double[][] front)
point - The pointfront - The front that contains the other points to calculate the
distances
public double[][] getNormalizedFront(double[][] front,
double[] maximumValue,
double[] minimumValue)
front - A pareto front.maximumValue - The maximum values allowedminimumValue - The minimum values allowed
public double[][] invertedFront(double[][] front)
front - The pareto front to inverse
public SolutionSet readSolutionSet(java.lang.String path)
path - The path of the file containing the data
public SolutionSet readNonDominatedSolutionSet(java.lang.String path)
path - The path of the file containing the data
public void readNonDominatedSolutionSet(java.lang.String path,
NonDominatedSolutionList solutionSet)
path - The path of the file containing the data
public double[] hvContributions(int numberOfobjectives,
double[][] front)
front - transformed objective values
public double[] hvContributions(SolutionSet[] populations)
populations, - consisting in all the populatoins
public double[] hvContributions(SolutionSet archive,
SolutionSet[] populations)
populations, - consisting in all the populatoins
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||