T - type of variablepublic class Random<T extends Variable> extends Object implements VariableSelector<T>, VariableEvaluator<T>
| Constructor and Description |
|---|
Random(long seed)
Random variable selector
|
| Modifier and Type | Method and Description |
|---|---|
double |
evaluate(T variable)
Evaluates the heuristic that is minimized in order to find the best variable
|
T |
getVariable(T[] variables)
Provides access to the current selected variable among
variables. |
public Random(long seed)
seed - seed for random number generator.public T getVariable(T[] variables)
VariableSelectorvariables.
If there is no variable left, return null.getVariable in interface VariableSelector<T extends Variable>null otherwise.public double evaluate(T variable)
VariableEvaluatorevaluate in interface VariableEvaluator<T extends Variable>variable - array of variableCopyright © 2017. All rights reserved.