Package | Description |
---|---|
org.oakgp |
A tree-based genetic programming framework.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static Arguments |
Arguments.createArguments(List<? extends Node> args)
Returns a new
Arguments which contains the specified values. |
static Arguments |
Arguments.createArguments(Node... args)
Returns a new
Arguments which contains the specified values. |
Arguments |
Arguments.replaceAt(int index,
Node replacement)
Returns a new
Arguments resulting from replacing the existing Node at position index with replacement . |
Arguments |
Arguments.swap(int index1,
int index2)
Returns a new
Arguments resulting from switching the node located at index index1 with the node located at index index2 . |
Modifier and Type | Method and Description |
---|---|
Object |
Function.evaluate(Arguments arguments,
Assignments assignments)
Returns the result of applying this operation to the specified
Arguments and Assignments . |
default Node |
Function.simplify(Arguments arguments)
Attempts to find a simplified alternative to applying this function to the specified arguments.
|
Modifier and Type | Method and Description |
---|---|
Object |
SwitchEnum.evaluate(Arguments arguments,
Assignments assignments) |
Object |
OrElse.evaluate(Arguments arguments,
Assignments assignments) |
Object |
If.evaluate(Arguments arguments,
Assignments assignments) |
Node |
SwitchEnum.simplify(Arguments arguments) |
Node |
OrElse.simplify(Arguments arguments) |
Node |
If.simplify(Arguments arguments) |
Modifier and Type | Method and Description |
---|---|
Object |
IsZero.evaluate(Arguments arguments,
Assignments assignments) |
Object |
IsPositive.evaluate(Arguments arguments,
Assignments assignments) |
Object |
IsNegative.evaluate(Arguments arguments,
Assignments assignments) |
Modifier and Type | Method and Description |
---|---|
Object |
Count.evaluate(Arguments arguments,
Assignments assignments) |
Modifier and Type | Method and Description |
---|---|
Node |
NotEqual.simplify(Arguments arguments) |
Node |
GreaterThanOrEqual.simplify(Arguments arguments) |
Node |
GreaterThan.simplify(Arguments arguments) |
Node |
Equal.simplify(Arguments arguments) |
Modifier and Type | Method and Description |
---|---|
Object |
Reduce.evaluate(Arguments arguments,
Assignments assignments) |
Object |
Map.evaluate(Arguments arguments,
Assignments assignments) |
Object |
Filter.evaluate(Arguments arguments,
Assignments assignments) |
Modifier and Type | Method and Description |
---|---|
Arguments |
FunctionNode.getArguments() |
Constructor and Description |
---|
FunctionNode(Function function,
Arguments arguments)
Constructs a new
FunctionNode with the specified function function and arguments. |
OakGP Genetic Programming Framework