public class CrowdingDistance<S extends Solution> extends Object implements DensityEstimator<S>
| Constructor and Description |
|---|
CrowdingDistance() |
| Modifier and Type | Method and Description |
|---|---|
void |
computeDensityEstimator(List<S> solutionSet)
Assigns crowding distances to all solutions in a
SolutionSet. |
Double |
getAttribute(Solution solution) |
Object |
getAttributeID() |
void |
setAttribute(Solution solution,
Double value) |
public void computeDensityEstimator(List<S> solutionSet)
SolutionSet.computeDensityEstimator in interface DensityEstimator<S extends Solution>solutionSet - The SolutionSet.JMetalExceptionpublic void setAttribute(Solution solution, Double value)
setAttribute in interface SolutionAttribute<S extends Solution,Double>public Double getAttribute(Solution solution)
getAttribute in interface SolutionAttribute<S extends Solution,Double>public Object getAttributeID()
getAttributeID in interface SolutionAttribute<S extends Solution,Double>Copyright © 2015. All rights reserved.