Class KnnDensityEstimator<S extends Solution<?>>
java.lang.Object
org.uma.jmetal.util.densityestimator.impl.KnnDensityEstimator<S>
- All Implemented Interfaces:
Serializable,DensityEstimator<S>
public class KnnDensityEstimator<S extends Solution<?>>
extends Object
implements DensityEstimator<S>
This class implements a density estimator based on the distance to the k-th nearest solution
- Author:
- Antonio J. Nebro
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAssigns the KNearestDistanceCalculator distance to all the solutions in a list
-
Constructor Details
-
KnnDensityEstimator
public KnnDensityEstimator(int k) -
KnnDensityEstimator
public KnnDensityEstimator(int k, boolean normalize)
-
-
Method Details
-
compute
-
value
-
comparator
- Specified by:
comparatorin interfaceDensityEstimator<S extends Solution<?>>
-