public class FrontUtils extends Object
| Constructor and Description |
|---|
FrontUtils() |
| Modifier and Type | Method and Description |
|---|---|
static double[][] |
convertFrontToArray(Front front)
Given a front, converts it to an array of double values
|
static List<PointSolution> |
convertFrontToSolutionList(Front front)
Given a front, converts it to a Solution set of PointSolutions
|
static double |
distanceToClosestPoint(Point point,
Front front)
Gets the distance between a point and the nearest one in a given front
|
static double |
distanceToNearestPoint(Point point,
Front front)
Gets the distance between a point and the nearest one in a front.
|
static Front |
getInvertedFront(Front front)
This method receives a normalized pareto front and return the inverted one.
|
static double[] |
getMaximumValues(Front front)
Gets the maximum values for each objectives in a front
|
static double[] |
getMinimumValues(Front front)
Gets the minimum values for each objectives in a given front
|
static Front |
getNormalizedFront(Front front,
double[] maximumValues,
double[] minimumValues)
This method receives a front and two points, one with maximum values
and the other one with minimum, and returns a normalized front.
|
public static double[] getMaximumValues(Front front)
front - A front of objective valuespublic static double[] getMinimumValues(Front front)
front - The frontpublic static Front getNormalizedFront(Front front, double[] maximumValues, double[] minimumValues)
front - A front of points.maximumValues - The maximum values allowedminimumValues - The minimum values allowedpublic static double distanceToNearestPoint(Point point, Front front)
point - The pointfront - The front that contains the other points to calculate the distancespublic static double distanceToClosestPoint(Point point, Front front)
point - The pointfront - The front that contains the other points to calculate the
distancespublic static Front getInvertedFront(Front front)
front - The pareto front to inversepublic static double[][] convertFrontToArray(Front front)
front - public static List<PointSolution> convertFrontToSolutionList(Front front)
front - Copyright © 2015. All rights reserved.