public final class RunBuilder.VariablesRatioSetter extends Object implements RunBuilder.FunctionSetSetter
Modifier and Type | Method and Description |
---|---|
RunBuilder.GenerationRankerSetter |
setFunctions(Function... functions)
Sets the functions that are available for use in the construction of programs generated by the run.
|
RunBuilder.GenerationRankerSetter |
setFunctions(List<Function> functions)
Sets the functions that are available for use in the construction of programs generated by the run.
|
RunBuilder.FunctionSetSetter |
setRatioVariables(double ratioVariables)
Sets the ratio of terminal nodes that should be variable nodes, rather than constant nodes.
|
public RunBuilder.FunctionSetSetter setRatioVariables(double ratioVariables)
ratioVariables
- a value in the range 0 to 1 (inclusive) which specifies the proportion of terminal nodes that should represent variables, rather than
constantsIllegalArgumentException
- if ratioVariables
is not in the range 0 to 1 inclusivepublic RunBuilder.GenerationRankerSetter setFunctions(Function... functions)
RunBuilder.FunctionSetSetter
setFunctions
in interface RunBuilder.FunctionSetSetter
public RunBuilder.GenerationRankerSetter setFunctions(List<Function> functions)
RunBuilder.FunctionSetSetter
setFunctions
in interface RunBuilder.FunctionSetSetter
OakGP Genetic Programming Framework