T - Type of data that will be clusteredpublic class WindowNeighborGenerator<T> extends Object implements NeighborGenerotor<T>
| Constructor and Description |
|---|
WindowNeighborGenerator() |
| Modifier and Type | Method and Description |
|---|---|
ArrayList<T> |
getNeighbor(NeighborGeneratorHelper<T> helper,
Solution<T> current_solution,
Similarity<T> similarity)
Create a neighbor candidate solution.
|
void |
init(int k)
Initialize the generator, before we start computing.
|
void |
notifyCandidateSolutionCost(List<T> solution,
double cost)
Inform the generator what the cost of the current solution is.
|
void |
notifyNewSolution(List<T> solution,
double cost)
Notify the generator that the new solution is better then the previous
one.
|
public final ArrayList<T> getNeighbor(NeighborGeneratorHelper<T> helper, Solution<T> current_solution, Similarity<T> similarity)
NeighborGenerotorgetNeighbor in interface NeighborGenerotor<T>public final void notifyNewSolution(List<T> solution, double cost)
NeighborGenerotornotifyNewSolution in interface NeighborGenerotor<T>solution - cost - public final void notifyCandidateSolutionCost(List<T> solution, double cost)
NeighborGenerotornotifyCandidateSolutionCost in interface NeighborGenerotor<T>solution - cost - public final void init(int k)
NeighborGenerotorinit in interface NeighborGenerotor<T>k - Copyright © 2017. All rights reserved.