public final class FunctionSet extends Object
Function
implementations to use during a genetic programming run.Constructor and Description |
---|
FunctionSet(Function... functions)
Constructs a function set containing the specified functions.
|
Modifier and Type | Method and Description |
---|---|
List<Function> |
getBySignature(Signature signature)
Returns a list of all functions in this set that have the specified signature.
|
List<Function> |
getByType(Type type)
Returns a list of all functions in this set that have the specified return type.
|
public FunctionSet(Function... functions)
public List<Function> getByType(Type type)
type
- the type to find matching functions ofnull
if there are no functions with the required return type
in this setpublic List<Function> getBySignature(Signature signature)
signature
- the signature to find matching functions ofnull
if there are no functions with the required signature in
this setOakGP Genetic Programming Framework