S - public class KNearestNeighborhood<S extends Solution<?>> extends Object implements Neighborhood<S>
| Constructor and Description |
|---|
KNearestNeighborhood(int neighborSize) |
KNearestNeighborhood(int neighborSize,
Distance<S,S> distance) |
| Modifier and Type | Method and Description |
|---|---|
List<S> |
getNeighbors(List<S> solutionList,
int solutionIndex) |
public List<S> getNeighbors(List<S> solutionList, int solutionIndex)
getNeighbors in interface Neighborhood<S extends Solution<?>>Copyright © 2018. All rights reserved.