public class Random<T extends Variable> extends Object implements VariableSelector<T>, VariableEvaluator<T>
Constructor and Description |
---|
Random(long seed) |
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 T getVariable(T[] variables)
VariableSelector
variables
.
If there is no variable left, return null
.getVariable
in interface VariableSelector<T extends Variable>
null
otherwise.public double evaluate(T variable)
VariableEvaluator
evaluate
in interface VariableEvaluator<T extends Variable>
variable
- array of variableCopyright © 2015. All rights reserved.