Package | Description |
---|---|
org.oakgp.function |
Provides functions that accept arguments and produce a result.
|
org.oakgp.function.choice |
Provides functions for selection.
|
org.oakgp.function.classify |
Provides functions for classifying
Node instances. |
org.oakgp.function.coll |
Provides functions for working with collections.
|
org.oakgp.function.compare |
Provides functions for comparing the results of evaluating
Node instances. |
org.oakgp.function.hof |
Provides higher-order functions.
|
org.oakgp.node |
Provides classes that can be used to construct hierarchical tree structures.
|
org.oakgp.primitive |
Provides classes for specifying the contents of a primitive set.
|
org.oakgp.serialize |
Provides class for the serialisation and deserialisation of
Node instances. |
org.oakgp.util |
Utility classes that support the functionality provided by the rest of the framework.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ImpureFunction
Represents an impure function.
|
Modifier and Type | Class and Description |
---|---|
class |
If
A selection operator that uses a boolean expression to determine which code to evaluate.
|
class |
OrElse
Returns the first argument if not
null , else returns the second argument. |
class |
SwitchEnum
A selection operator that uses the value of an enum to determine which code to evaluate.
|
Modifier and Type | Class and Description |
---|---|
class |
IsNegative
Determines if a number is negative.
|
class |
IsPositive
Determines if a number is positive.
|
class |
IsZero
Determines if a number is zero.
|
Modifier and Type | Class and Description |
---|---|
class |
Count
Determines the number of elements contained in a collection.
|
Modifier and Type | Class and Description |
---|---|
class |
Equal
Determines if two objects are equal.
|
class |
GreaterThan
Determines if the object represented by the first argument is greater than the object represented by the second.
|
class |
GreaterThanOrEqual
Determines if the object represented by the first argument is greater than or equal to the object represented by the second.
|
class |
LessThan
Determines if the object represented by the first argument is less than the object represented by the second.
|
class |
LessThanOrEqual
Determines if the object represented by the first argument is less than or equal to the object represented by the second.
|
class |
NotEqual
Determines if two objects are not equal.
|
Modifier and Type | Class and Description |
---|---|
class |
Filter
Uses a function to filter the elements of a collection.
|
class |
Map
Returns the result of applying a function to each element of a collection.
|
class |
Reduce
Combines the elements of a collection by recursively applying a function.
|
Modifier and Type | Method and Description |
---|---|
Function |
FunctionNode.getFunction() |
Constructor and Description |
---|
FunctionNode(Function function,
Arguments arguments)
Constructs a new
FunctionNode with the specified function function and arguments. |
FunctionNode(Function function,
Node... arguments)
Constructs a new
FunctionNode with the specified function function and arguments. |
Modifier and Type | Method and Description |
---|---|
Function |
PrimitiveSetImpl.nextAlternativeFunction(Function current)
Returns a randomly selected
Function that is not the same as the specified Function . |
Function |
PrimitiveSet.nextAlternativeFunction(Function current)
Returns a randomly selected
Function that is not the same as the specified Function . |
Function |
PrimitiveSetImpl.nextFunction(Type type)
Returns a randomly selected
Function of the specified Type . |
Function |
PrimitiveSet.nextFunction(Type type)
Returns a randomly selected
Function of the specified Type . |
Modifier and Type | Method and Description |
---|---|
List<Function> |
FunctionSet.getBySignature(Signature signature)
Returns a list of all functions in this set that have the specified signature.
|
List<Function> |
FunctionSet.getByType(Type type)
Returns a list of all functions in this set that have the specified return type.
|
Modifier and Type | Method and Description |
---|---|
Function |
PrimitiveSetImpl.nextAlternativeFunction(Function current)
Returns a randomly selected
Function that is not the same as the specified Function . |
Function |
PrimitiveSet.nextAlternativeFunction(Function current)
Returns a randomly selected
Function that is not the same as the specified Function . |
Constructor and Description |
---|
FunctionSet(Function... functions)
Constructs a function set containing the specified functions.
|
Constructor and Description |
---|
NodeReader(String input,
Function[] functions,
ConstantNode[] constants,
VariableSet variableSet)
Creates a
NodeReader that reads from the given java.lang.String . |
Modifier and Type | Method and Description |
---|---|
RunBuilder.GenerationRankerSetter |
RunBuilder.VariablesRatioSetter.setFunctions(Function... functions) |
RunBuilder.GenerationRankerSetter |
RunBuilder.FunctionSetSetter.setFunctions(Function... functions)
Sets the functions that are available for use in the construction of programs generated by the run.
|
Modifier and Type | Method and Description |
---|---|
RunBuilder.GenerationRankerSetter |
RunBuilder.VariablesRatioSetter.setFunctions(List<Function> functions) |
RunBuilder.GenerationRankerSetter |
RunBuilder.FunctionSetSetter.setFunctions(List<Function> functions)
Sets the functions that are available for use in the construction of programs generated by the run.
|
OakGP Genetic Programming Framework