Skip navigation links
A B C D E F G H I J L M N O P R S T U V W 

A

add(BigDecimal, BigDecimal) - Method in class org.oakgp.function.math.BigDecimalUtils
 
add(BigInteger, BigInteger) - Method in class org.oakgp.function.math.BigIntegerUtils
 
add(Double, Double) - Method in class org.oakgp.function.math.DoubleUtils
 
add(Integer, Integer) - Method in class org.oakgp.function.math.IntegerUtils
 
add(Long, Long) - Method in class org.oakgp.function.math.LongUtils
 
add(Node) - Method in class org.oakgp.util.NodeSet
Adds the simplified version of the specified Node to this set if it is not already present.
apply(Node, int) - Method in interface org.oakgp.node.walk.DepthWalk.DepthWalkReplacement
 
areFunctions(Node, Node) - Static method in enum org.oakgp.node.NodeType
Returns true if both of the specified nodes are function nodes, else false.
areTerminals(Node, Node) - Static method in enum org.oakgp.node.NodeType
Returns true if both of the specified nodes are terminal nodes, else false.
Arguments - Class in org.oakgp
Represents the arguments of a function.
arrayType(Type) - Static method in class org.oakgp.Type
Returns the type associated with a Arguments containing elements of the specified type.
Assignments - Class in org.oakgp
Represents values assigned to variables.

B

best() - Method in class org.oakgp.rank.RankedCandidates
Returns the best candidate in this collection.
BIG_DECIMAL_UTILS - Static variable in class org.oakgp.function.math.BigDecimalUtils
Singleton instance.
BIG_INTEGER_UTILS - Static variable in class org.oakgp.function.math.BigIntegerUtils
Singleton instance.
bigDecimalType() - Static method in class org.oakgp.Type
Returns the type associated with instances of java.math.BigDecimal.
BigDecimalUtils - Class in org.oakgp.function.math
Provides support for working with instances of java.math.BigDecimal.
bigIntegerType() - Static method in class org.oakgp.Type
Returns the type associated with instances of java.math.BigInteger.
BigIntegerUtils - Class in org.oakgp.function.math
Provides support for working with instances of java.math.BigInteger.
booleanArrayType() - Static method in class org.oakgp.Type
Returns the type associated with a Arguments containing elements of type Type.booleanType().
booleanType() - Static method in class org.oakgp.Type
Returns the type associated with instances of java.lang.Boolean.

C

CacheMap<K,V> - Class in org.oakgp.util
Provides a size-limited map of keys to values.
close() - Method in class org.oakgp.serialize.NodeReader
 
compare(Node, Node) - Method in class org.oakgp.util.NodeComparator
 
compareTo(RankedCandidate) - Method in class org.oakgp.rank.RankedCandidate
 
compareTo(Type) - Method in class org.oakgp.Type
 
CompositeTerminator - Class in org.oakgp.terminate
A predicate that will return true when any of it component predicates return true.
CompositeTerminator(Predicate<RankedCandidates>...) - Constructor for class org.oakgp.terminate.CompositeTerminator
Constructs a new Predicate consisting of the specified component predicates.
Config() - Constructor for class org.oakgp.util.RunBuilder.Config
 
ConstantNode - Class in org.oakgp.node
Represents a constant value.
ConstantNode(Object, Type) - Constructor for class org.oakgp.node.ConstantNode
Constructs a new ConstantNode that represents the specified value.
ConstantSet - Class in org.oakgp.primitive
Represents the range of possible constants to use during a genetic programming run.
ConstantSet(ConstantNode...) - Constructor for class org.oakgp.primitive.ConstantSet
Constructs a constant set containing the specified constants.
ConstantToFunctionMutation - Class in org.oakgp.evolve.mutate
Replaces a randomly selected terminal node of the parent with a newly generated subtree.
ConstantToFunctionMutation(Random, TreeGenerator) - Constructor for class org.oakgp.evolve.mutate.ConstantToFunctionMutation
Creates a ConstantToFunctionMutation that uses the given TreeGenerator to generate new subtrees to replace existing terminals.
copyOf(T[]) - Static method in class org.oakgp.util.Utils
Returns a copy of the specified array.
Count - Class in org.oakgp.function.coll
Determines the number of elements contained in a collection.
Count(Type) - Constructor for class org.oakgp.function.coll.Count
Constructs a function to return the number of items in collections of the specified type.
create(Type) - Static method in class org.oakgp.function.compare.LessThan
Returns a LessThan for comparing functions of the specified type.
create(Type) - Static method in class org.oakgp.function.compare.LessThanOrEqual
Returns a LessThanOrEqual for comparing functions of the specified type.
createArguments(List<? extends Node>) - Static method in class org.oakgp.Arguments
Returns a new Arguments which contains the specified values.
createArguments(Node...) - Static method in class org.oakgp.Arguments
Returns a new Arguments which contains the specified values.
createAssignments(Object...) - Static method in class org.oakgp.Assignments
Returns a new Assignments which contains the specified values.
createCache(int) - Static method in class org.oakgp.util.CacheMap
Returns a size-limited map of keys to values.
createEnumConstants(Class<? extends Enum<?>>, Type) - Static method in class org.oakgp.util.Utils
Returns an array consisting of a ConstantNode instance for each of the possible values of the specified enum.
createIntegerConstants(int, int) - Static method in class org.oakgp.util.Utils
Returns an array consisting of a ConstantNode instance for each of the integer values in the specified range.
createIntegerTestDataFitnessFunction(Map<Assignments, Integer>) - Static method in class org.oakgp.rank.fitness.TestDataFitnessFunction
Returns a new FitnessFunction which uses the specified test data to assess the fitness of potential solutions.
createIntegerTypeArray(int) - Static method in class org.oakgp.util.Utils
Creates an array of the specified size and assigns the result of Type.integerType() to each element.
createSignature(Type, Type...) - Static method in class org.oakgp.function.Signature
Returns a new Signature with the specified return type and argument types.
createVariableSet(Type...) - Static method in class org.oakgp.primitive.VariableSet
Constructs a variable set containing variables of the specified types.

D

DepthWalk - Class in org.oakgp.node.walk
Provides a mechanism for recursively visiting nodes in a tree structure while keeping track of the depth of each node.
DepthWalk.DepthWalkReplacement - Interface in org.oakgp.node.walk
Defines a strategy for determining a replacement for a node encountered when walking a tree structure.
DepthWalk.DepthWalkStrategy - Interface in org.oakgp.node.walk
Defines a strategy for determining which nodes should be considered when walking a tree structure.
divide(BigDecimal, BigDecimal) - Method in class org.oakgp.function.math.BigDecimalUtils
 
divide(BigInteger, BigInteger) - Method in class org.oakgp.function.math.BigIntegerUtils
 
divide(Double, Double) - Method in class org.oakgp.function.math.DoubleUtils
 
divide(Integer, Integer) - Method in class org.oakgp.function.math.IntegerUtils
 
divide(Long, Long) - Method in class org.oakgp.function.math.LongUtils
 
DOUBLE_UTILS - Static variable in class org.oakgp.function.math.DoubleUtils
Singleton instance.
doubleType() - Static method in class org.oakgp.Type
Returns the type associated with instances of java.lang.Double.
DoubleUtils - Class in org.oakgp.function.math
Provides support for working with instances of java.lang.Double.

E

Equal - Class in org.oakgp.function.compare
Determines if two objects are equal.
Equal(Type) - Constructor for class org.oakgp.function.compare.Equal
Constructs a function that compares two arguments of the specified type.
equals(Object) - Method in class org.oakgp.Arguments
 
equals(Object) - Method in class org.oakgp.Assignments
 
equals(Object) - Method in class org.oakgp.function.Signature
 
equals(Object) - Method in class org.oakgp.node.ConstantNode
 
equals(Object) - Method in class org.oakgp.node.FunctionNode
 
equals(Object) - Method in class org.oakgp.node.VariableNode
Two VariableNode references are only "equal" if they refer to the same instance.
equals(Object) - Method in class org.oakgp.rank.RankedCandidate
 
equals(Object) - Method in class org.oakgp.Type
 
evaluate(Arguments, Assignments) - Method in class org.oakgp.function.choice.If
 
evaluate(Arguments, Assignments) - Method in class org.oakgp.function.choice.OrElse
 
evaluate(Arguments, Assignments) - Method in class org.oakgp.function.choice.SwitchEnum
 
evaluate(Arguments, Assignments) - Method in class org.oakgp.function.classify.IsNegative
 
evaluate(Arguments, Assignments) - Method in class org.oakgp.function.classify.IsPositive
 
evaluate(Arguments, Assignments) - Method in class org.oakgp.function.classify.IsZero
 
evaluate(Arguments, Assignments) - Method in class org.oakgp.function.coll.Count
 
evaluate(int) - Method in class org.oakgp.function.compare.Equal
 
evaluate(int) - Method in class org.oakgp.function.compare.GreaterThan
 
evaluate(int) - Method in class org.oakgp.function.compare.GreaterThanOrEqual
 
evaluate(int) - Method in class org.oakgp.function.compare.LessThan
 
evaluate(int) - Method in class org.oakgp.function.compare.LessThanOrEqual
 
evaluate(int) - Method in class org.oakgp.function.compare.NotEqual
 
evaluate(Arguments, Assignments) - Method in interface org.oakgp.function.Function
Returns the result of applying this operation to the specified Arguments and Assignments.
evaluate(Arguments, Assignments) - Method in class org.oakgp.function.hof.Filter
 
evaluate(Arguments, Assignments) - Method in class org.oakgp.function.hof.Map
 
evaluate(Arguments, Assignments) - Method in class org.oakgp.function.hof.Reduce
 
evaluate(Assignments) - Method in class org.oakgp.node.ConstantNode
Returns the value specified when this ConstantNode was constructed.
evaluate(Assignments) - Method in class org.oakgp.node.FunctionNode
 
evaluate(Assignments) - Method in interface org.oakgp.node.Node
Returns the result of evaluating this Node using the values of the specified Assignments.
evaluate(Assignments) - Method in class org.oakgp.node.VariableNode
Returns the value assigned to this VariableNode by the specified Assignments.
evaluate(Node) - Method in interface org.oakgp.rank.fitness.FitnessFunction
Returns the fitness of the solution represented by the given Node.
evaluate(Node) - Method in class org.oakgp.rank.fitness.FitnessFunctionCache
 
evaluate(Node) - Method in class org.oakgp.rank.fitness.TestDataFitnessFunction
Evaluates the specified Node using the test data specified when this FitnessFunction was constructed.
evaluate(Node, Node) - Method in class org.oakgp.rank.tournament.FirstPlayerAdvantageGame
 
evaluate(Node, Node) - Method in interface org.oakgp.rank.tournament.TwoPlayerGame
Determines the outcome of the two specified players competing against each other.
evaluate(Node, Node) - Method in class org.oakgp.rank.tournament.TwoPlayerGameCache
 
evolve(NodeSelector) - Method in class org.oakgp.evolve.crossover.OnePointCrossover
 
evolve(NodeSelector) - Method in class org.oakgp.evolve.crossover.SubtreeCrossover
 
evolve(RankedCandidates) - Method in interface org.oakgp.evolve.GenerationEvolver
Returns a new generation of Node instances evolved from the specified existing generation.
evolve(RankedCandidates) - Method in class org.oakgp.evolve.GenerationEvolverImpl
Returns a new generation of Node instances evolved from the specified existing generation.
evolve(NodeSelector) - Method in interface org.oakgp.evolve.GeneticOperator
Returns a new Node evolved from existing instances.
evolve(NodeSelector) - Method in class org.oakgp.evolve.mutate.ConstantToFunctionMutation
 
evolve(NodeSelector) - Method in class org.oakgp.evolve.mutate.HoistMutation
 
evolve(NodeSelector) - Method in class org.oakgp.evolve.mutate.PointMutation
 
evolve(NodeSelector) - Method in class org.oakgp.evolve.mutate.ShrinkMutation
 
evolve(NodeSelector) - Method in class org.oakgp.evolve.mutate.SubTreeMutation
 

F

FALSE_NODE - Static variable in class org.oakgp.util.Utils
Represents the boolean value false.
Filter - Class in org.oakgp.function.hof
Uses a function to filter the elements of a collection.
Filter(Type) - Constructor for class org.oakgp.function.hof.Filter
Creates a higher order functions that filters the elements of a collection.
firstArg() - Method in class org.oakgp.Arguments
Returns the first argument in this Arguments.
FirstPlayerAdvantageGame - Class in org.oakgp.rank.tournament
Removes "first-mover advantage" bias from the evaluation of players in two player games.
FirstPlayerAdvantageGame(TwoPlayerGame) - Constructor for class org.oakgp.rank.tournament.FirstPlayerAdvantageGame
Creates a FirstPlayerAdvantageGame that uses the given TwoPlayerGame.
FitnessFunction - Interface in org.oakgp.rank.fitness
Calculates the fitness of a potential solution.
FitnessFunctionCache - Class in org.oakgp.rank.fitness
Wraps a FitnessFunction to provide caching of results.
FitnessFunctionCache(int, FitnessFunction) - Constructor for class org.oakgp.rank.fitness.FitnessFunctionCache
Creates a cache of the given maximum size which will contain the results of evaluating the given FitnessFunction.
FitnessFunctionGenerationRanker - Class in org.oakgp.rank.fitness
Ranks and sorts the fitness of Node instances using a FitnessFunction.
FitnessFunctionGenerationRanker(FitnessFunction) - Constructor for class org.oakgp.rank.fitness.FitnessFunctionGenerationRanker
Constructs a GenerationRanker with the specified FitnessFunction.
FitnessProportionateSelection - Class in org.oakgp.select
The fitness of candidates is used to determine the probability that they will be selected.
FitnessProportionateSelection(Random, RankedCandidates) - Constructor for class org.oakgp.select.FitnessProportionateSelection
Creates a FitnessProportionateSelection that uses the given Random to select from the given RankedCandidates.
FitnessProportionateSelectionFactory - Class in org.oakgp.select
Returns instances of FitnessProportionateSelection.
FitnessProportionateSelectionFactory(Random) - Constructor for class org.oakgp.select.FitnessProportionateSelectionFactory
Creates a FitnessProportionateSelectionFactory that creates FitnessProportionateSelection instances that use the given Random.
full(PrimitiveSet) - Static method in class org.oakgp.generate.TreeGeneratorImpl
Creates a TreeGenerator that uses the "full" approach to creating trees.
Function - Interface in org.oakgp.function
Represents an operation.
FunctionNode - Class in org.oakgp.node
Contains a function (operator) and the arguments (operands) to apply to it.
FunctionNode(Function, Node...) - Constructor for class org.oakgp.node.FunctionNode
Constructs a new FunctionNode with the specified function function and arguments.
FunctionNode(Function, Arguments) - Constructor for class org.oakgp.node.FunctionNode
Constructs a new FunctionNode with the specified function function and arguments.
FunctionSet - Class in org.oakgp.primitive
Represents the set of possible Function implementations to use during a genetic programming run.
FunctionSet(Function...) - Constructor for class org.oakgp.primitive.FunctionSet
Constructs a function set containing the specified functions.
functionType(Type...) - Static method in class org.oakgp.Type
Returns the type associated with instances of org.oakgp.function.Function with the specified signature.

G

generate(Type, int) - Method in interface org.oakgp.generate.TreeGenerator
Constructs a new tree data structure.
generate(Type, int) - Method in class org.oakgp.generate.TreeGeneratorImpl
 
GenerationEvolver - Interface in org.oakgp.evolve
Creates a new generation of Node instances evolved from an existing generation.
GenerationEvolverImpl - Class in org.oakgp.evolve
Uses a user-defined collection of GeneticOperator instances to evolve new generations from existing generations.
GenerationEvolverImpl(int, NodeSelectorFactory, Map<GeneticOperator, Integer>) - Constructor for class org.oakgp.evolve.GenerationEvolverImpl
Creates a GenerationEvolverImpl that uses the given values to evolve new generations.
GenerationRanker - Interface in org.oakgp.rank
Ranks and sorts the fitness of Node instances.
GeneticOperator - Interface in org.oakgp.evolve
Creates new Node instances evolved from existing instances.
get(int) - Method in class org.oakgp.Assignments
Returns the value at the specified position in this Assignments.
get(int) - Method in class org.oakgp.rank.RankedCandidates
Returns the candidate at the specified position in this collection.
getArg(int) - Method in class org.oakgp.Arguments
Returns the Node at the specified position in this Arguments.
getArgCount() - Method in class org.oakgp.Arguments
Returns the number of elements in this Arguments.
getArguments() - Method in class org.oakgp.node.FunctionNode
 
getArgumentType(int) - Method in class org.oakgp.function.Signature
Returns the Type at the specified position in the arguments of this signature.
getArgumentTypes() - Method in class org.oakgp.function.Signature
Returns an unmodifiable list containing the type of each argument associated with this signature.
getArgumentTypesLength() - Method in class org.oakgp.function.Signature
Returns the number of arguments in this signature.
getAt(Node, int, DepthWalk.DepthWalkStrategy) - Static method in class org.oakgp.node.walk.DepthWalk
Returns a Node from the tree structure represented by the given Node that matches the specified predicate.
getAt(Node, int) - Static method in class org.oakgp.node.walk.NodeWalk
Returns a Node from the tree structure represented by the given Node.
getAt(Node, int, Predicate<Node>) - Static method in class org.oakgp.node.walk.StrategyWalk
Returns a Node from the tree structure represented by the given Node that matches the specified predicate.
getById(int) - Method in class org.oakgp.primitive.VariableSet
Returns the VariableNode from this set that is associated with the specified ID.
getBySignature(Signature) - Method in class org.oakgp.primitive.FunctionSet
Returns a list of all functions in this set that have the specified signature.
getByType(Type) - Method in class org.oakgp.primitive.ConstantSet
Returns a list of all constants in this set that are of the specified type.
getByType(Type) - Method in class org.oakgp.primitive.FunctionSet
Returns a list of all functions in this set that have the specified return type.
getByType(Type) - Method in class org.oakgp.primitive.VariableSet
Returns a list of all variables in this set that are of the specified type.
getDisplayName() - Method in class org.oakgp.function.choice.SwitchEnum
 
getDisplayName() - Method in class org.oakgp.function.classify.IsNegative
 
getDisplayName() - Method in class org.oakgp.function.classify.IsPositive
 
getDisplayName() - Method in class org.oakgp.function.compare.Equal
 
getDisplayName() - Method in class org.oakgp.function.compare.GreaterThan
 
getDisplayName() - Method in class org.oakgp.function.compare.GreaterThanOrEqual
 
getDisplayName() - Method in class org.oakgp.function.compare.LessThan
 
getDisplayName() - Method in class org.oakgp.function.compare.LessThanOrEqual
 
getDisplayName() - Method in class org.oakgp.function.compare.NotEqual
 
getDisplayName() - Method in interface org.oakgp.function.Function
Returns the String value to use in the textual representation of this function.
getFitness() - Method in class org.oakgp.rank.RankedCandidate
 
getFunction() - Method in class org.oakgp.node.FunctionNode
 
getHeight() - Method in class org.oakgp.node.FunctionNode
 
getHeight() - Method in interface org.oakgp.node.Node
Returns the height of this Node.
getId() - Method in class org.oakgp.node.VariableNode
Returns the ID associated with the variable.
getNode() - Method in class org.oakgp.rank.RankedCandidate
 
getNodeCount() - Method in class org.oakgp.node.FunctionNode
 
getNodeCount() - Method in interface org.oakgp.node.Node
Returns the total number of nodes represented by this Node - including any child-nodes.
getNodeCount(Node, DepthWalk.DepthWalkStrategy) - Static method in class org.oakgp.node.walk.DepthWalk
Returns the total number of nodes contained in the tree-structure represented by the given Node that match the specified predicate.
getNodeCount(Node, Predicate<Node>) - Static method in class org.oakgp.node.walk.StrategyWalk
Returns the total number of nodes contained in the tree-structure represented by the given Node that match the specified predicate.
getNodeType() - Method in class org.oakgp.node.ConstantNode
 
getNodeType() - Method in class org.oakgp.node.FunctionNode
 
getNodeType() - Method in interface org.oakgp.node.Node
Returns the NodeType of this Node.
getNodeType() - Method in class org.oakgp.node.VariableNode
 
getPrimitiveSet() - Method in class org.oakgp.util.RunBuilder.Config
 
getRandom() - Method in class org.oakgp.util.RunBuilder.Config
 
getReturnType() - Method in class org.oakgp.function.Signature
Returns the type associated with values returned by the evaluation of functions that have this signature.
getReturnType() - Method in class org.oakgp.util.RunBuilder.Config
 
getSelector(RankedCandidates) - Method in class org.oakgp.select.FitnessProportionateSelectionFactory
 
getSelector(RankedCandidates) - Method in interface org.oakgp.select.NodeSelectorFactory
Returns a NodeSelector that selects from the specified candidates.
getSelector(RankedCandidates) - Method in class org.oakgp.select.RankSelectionFactory
 
getSignature() - Method in class org.oakgp.function.choice.If
 
getSignature() - Method in class org.oakgp.function.choice.OrElse
 
getSignature() - Method in class org.oakgp.function.choice.SwitchEnum
 
getSignature() - Method in class org.oakgp.function.classify.IsNegative
 
getSignature() - Method in class org.oakgp.function.classify.IsPositive
 
getSignature() - Method in class org.oakgp.function.classify.IsZero
 
getSignature() - Method in class org.oakgp.function.coll.Count
 
getSignature() - Method in interface org.oakgp.function.Function
Returns the return type and argument types associated with this function.
getSignature() - Method in class org.oakgp.function.hof.Filter
 
getSignature() - Method in class org.oakgp.function.hof.Map
 
getSignature() - Method in class org.oakgp.function.hof.Reduce
 
getType() - Method in class org.oakgp.node.ConstantNode
 
getType() - Method in class org.oakgp.node.FunctionNode
 
getType() - Method in interface org.oakgp.node.Node
Returns the Type of this Node.
getType() - Method in class org.oakgp.node.VariableNode
 
GreaterThan - Class in org.oakgp.function.compare
Determines if the object represented by the first argument is greater than the object represented by the second.
GreaterThan(Type) - Constructor for class org.oakgp.function.compare.GreaterThan
Constructs a function that compares two arguments of the specified type.
GreaterThanOrEqual - Class in org.oakgp.function.compare
Determines if the object represented by the first argument is greater than or equal to the object represented by the second.
GreaterThanOrEqual(Type) - Constructor for class org.oakgp.function.compare.GreaterThanOrEqual
Constructs a function that compares two arguments of the specified type.
groupBy(V[], Function<V, K>) - Static method in class org.oakgp.util.Utils
Returns a map grouping the specified values according to the specified classification function.
groupByType(T[]) - Static method in class org.oakgp.util.Utils
Returns a map grouping the specified nodes by their Type.
grow(PrimitiveSet, Random) - Static method in class org.oakgp.generate.TreeGeneratorImpl
Creates a TreeGenerator that uses the "grow" approach to creating trees.

H

hasFunctions(Type) - Method in interface org.oakgp.primitive.PrimitiveSet
Returns true if the primitive set contains at least one function which has a return type of the specified type, else false.
hasFunctions(Type) - Method in class org.oakgp.primitive.PrimitiveSetImpl
 
hashCode() - Method in class org.oakgp.Arguments
 
hashCode() - Method in class org.oakgp.Assignments
 
hashCode() - Method in class org.oakgp.function.Signature
 
hashCode() - Method in class org.oakgp.node.ConstantNode
 
hashCode() - Method in class org.oakgp.node.FunctionNode
 
hashCode() - Method in class org.oakgp.node.VariableNode
 
hashCode() - Method in class org.oakgp.rank.RankedCandidate
 
hashCode() - Method in class org.oakgp.Type
 
hasTerminals(Type) - Method in interface org.oakgp.primitive.PrimitiveSet
Returns true if the primitive set contains at least one terminal node of the specified type, else false.
hasTerminals(Type) - Method in class org.oakgp.primitive.PrimitiveSetImpl
 
HoistMutation - Class in org.oakgp.evolve.mutate
Selects a subtree of the parent as a new offspring.
HoistMutation(Random) - Constructor for class org.oakgp.evolve.mutate.HoistMutation
Creates a HoistMutation that uses the given Random to select subtrees as new offspring.

I

If - Class in org.oakgp.function.choice
A selection operator that uses a boolean expression to determine which code to evaluate.
If(Type) - Constructor for class org.oakgp.function.choice.If
Constructs a selection operator that returns values of the specified type.
ImpureFunction - Interface in org.oakgp.function
Represents an impure function.
INTEGER_UTILS - Static variable in class org.oakgp.function.math.IntegerUtils
Singleton instance.
integerArrayType() - Static method in class org.oakgp.Type
Returns the type associated with a Arguments containing elements of type Type.integerType().
integerToBooleanFunctionType() - Static method in class org.oakgp.Type
Returns the type associated with org.oakgp.function.Function instances that accept a Type.integerType() and return Type.booleanType().
integerType() - Static method in class org.oakgp.Type
Returns the type associated with instances of java.lang.Integer.
IntegerUtils - Class in org.oakgp.function.math
Provides support for working with instances of java.lang.Integer.
isConstant(Node) - Static method in enum org.oakgp.node.NodeType
Returns true if the specified node is a constant node, else false.
isEndOfStream() - Method in class org.oakgp.serialize.NodeReader
Returns true if there is no more data to read from the underlying stream, else false.
isFunction(Node) - Static method in enum org.oakgp.node.NodeType
Returns true if the specified node is a function node, else false.
IsNegative - Class in org.oakgp.function.classify
Determines if a number is negative.
IsNegative() - Constructor for class org.oakgp.function.classify.IsNegative
 
isNullable(Type) - Static method in class org.oakgp.Type
Returns true if the given Type represents values that may be null.
IsPositive - Class in org.oakgp.function.classify
Determines if a number is positive.
IsPositive() - Constructor for class org.oakgp.function.classify.IsPositive
 
isPure() - Method in interface org.oakgp.function.Function
Returns true if this function is pure, else returns false.
isPure() - Method in interface org.oakgp.function.ImpureFunction
Returns false.
isTerminal(Node) - Static method in enum org.oakgp.node.NodeType
Returns true if the specified node is a terminal node, else false.
isValidDisplayName(String) - Static method in class org.oakgp.serialize.NodeReader
Returns true if the given String is suitable for use as the display name of a Function, else {code false}.
isVariable(Node) - Static method in enum org.oakgp.node.NodeType
Returns true if the specified node is a variable node, else false.
isVoid(Node) - Static method in class org.oakgp.util.Void
Returns true if the given node is a constant node containing Void.VOID.
IsZero - Class in org.oakgp.function.classify
Determines if a number is zero.
IsZero() - Constructor for class org.oakgp.function.classify.IsZero
 
iterator() - Method in class org.oakgp.rank.RankedCandidates
 

J

JavaUtilRandomAdapter - Class in org.oakgp.util
Allows a java.util.Random to be used as a org.oakgp.util.Random.
JavaUtilRandomAdapter() - Constructor for class org.oakgp.util.JavaUtilRandomAdapter
Creates a new random number generator.
JavaUtilRandomAdapter(long) - Constructor for class org.oakgp.util.JavaUtilRandomAdapter
Creates a new random number generator using the specified seed.

L

LessThan - Class in org.oakgp.function.compare
Determines if the object represented by the first argument is less than the object represented by the second.
LessThanOrEqual - Class in org.oakgp.function.compare
Determines if the object represented by the first argument is less than or equal to the object represented by the second.
LONG_UTILS - Static variable in class org.oakgp.function.math.LongUtils
Singleton instance.
longType() - Static method in class org.oakgp.Type
Returns the type associated with instances of java.lang.Long.
LongUtils - Class in org.oakgp.function.math
Provides support for working with instances of java.lang.Long.

M

Map - Class in org.oakgp.function.hof
Returns the result of applying a function to each element of a collection.
Map(Type, Type) - Constructor for class org.oakgp.function.hof.Map
Creates a higher order functions that applies a function to each element of a collection.
MaxGenerationsTerminator - Class in org.oakgp.terminate
A predicate that returns true when a specified number of generations has been run.
MaxGenerationsTerminator(int) - Constructor for class org.oakgp.terminate.MaxGenerationsTerminator
Constructs a new Predicate that will return true once the specified number of generations have been run.
MaxGenerationsWithoutImprovementTerminator - Class in org.oakgp.terminate
A predicate that returns true when a specified number of generations has since the last change in the fitness of candidates.
MaxGenerationsWithoutImprovementTerminator(int) - Constructor for class org.oakgp.terminate.MaxGenerationsWithoutImprovementTerminator
Constructs a new Predicate that will return true once the given number of consecutive generations have been run without improvement.
multiply(BigDecimal, BigDecimal) - Method in class org.oakgp.function.math.BigDecimalUtils
 
multiply(BigInteger, BigInteger) - Method in class org.oakgp.function.math.BigIntegerUtils
 
multiply(Double, Double) - Method in class org.oakgp.function.math.DoubleUtils
 
multiply(Integer, Integer) - Method in class org.oakgp.function.math.IntegerUtils
 
multiply(Long, Long) - Method in class org.oakgp.function.math.LongUtils
 

N

next() - Method in class org.oakgp.select.FitnessProportionateSelection
 
next() - Method in interface org.oakgp.select.NodeSelector
Returns a Node.
next() - Method in class org.oakgp.select.RankSelection
 
nextAlternativeFunction(Function) - Method in interface org.oakgp.primitive.PrimitiveSet
Returns a randomly selected Function that is not the same as the specified Function.
nextAlternativeFunction(Function) - Method in class org.oakgp.primitive.PrimitiveSetImpl
Returns a randomly selected Function that is not the same as the specified Function.
nextAlternativeTerminal(Node) - Method in interface org.oakgp.primitive.PrimitiveSet
Returns a randomly selected terminal node that is not the same as the specified Node.
nextAlternativeTerminal(Node) - Method in class org.oakgp.primitive.PrimitiveSetImpl
Returns a randomly selected terminal node that is not the same as the specified Node.
nextBoolean() - Method in class org.oakgp.util.JavaUtilRandomAdapter
 
nextBoolean() - Method in interface org.oakgp.util.Random
Returns a boolean value.
nextDouble() - Method in class org.oakgp.util.JavaUtilRandomAdapter
 
nextDouble() - Method in interface org.oakgp.util.Random
Returns a double value in the range 0.0d (inclusive) to 1.0d (exclusive).
nextFunction(Type) - Method in interface org.oakgp.primitive.PrimitiveSet
Returns a randomly selected Function of the specified Type.
nextFunction(Type) - Method in class org.oakgp.primitive.PrimitiveSetImpl
Returns a randomly selected Function of the specified Type.
nextInt(int) - Method in class org.oakgp.util.JavaUtilRandomAdapter
 
nextInt(int) - Method in interface org.oakgp.util.Random
Returns a int value between 0 (inclusive) and the specified value (exclusive).
nextTerminal(Type) - Method in interface org.oakgp.primitive.PrimitiveSet
Returns a randomly selected terminal node.
nextTerminal(Type) - Method in class org.oakgp.primitive.PrimitiveSetImpl
Returns a randomly selected terminal node.
Node - Interface in org.oakgp.node
A node represents a single point of a tree structure.
NODE_COMPARATOR - Static variable in class org.oakgp.util.NodeComparator
Singleton instance.
NodeComparator - Class in org.oakgp.util
An implementation of Comparator for comparing instances of Node.
NodeReader - Class in org.oakgp.serialize
Creates Node instances from String representations.
NodeReader(String, Function[], ConstantNode[], VariableSet) - Constructor for class org.oakgp.serialize.NodeReader
Creates a NodeReader that reads from the given java.lang.String.
NodeSelector - Interface in org.oakgp.select
Used to obtain Node instances.
NodeSelectorFactory - Interface in org.oakgp.select
Returns instances of NodeSelector.
NodeSet - Class in org.oakgp.util
A java.util.Set of the simplified versions of Node instances.
NodeSet() - Constructor for class org.oakgp.util.NodeSet
 
NodeSimplifier - Class in org.oakgp
Attempts to reduce the size of tree structures without altering their functionality.
NodeType - Enum in org.oakgp.node
Defines the node types used to construct tree structures.
NodeWalk - Class in org.oakgp.node.walk
Provides a mechanism for recursively visiting all nodes in a tree structure.
NodeWriter - Class in org.oakgp.serialize
Creates String representations of Node instances.
NodeWriter() - Constructor for class org.oakgp.serialize.NodeWriter
Creates a NodeWriter for the purpose of generating textual representations of Node instances.
NotEqual - Class in org.oakgp.function.compare
Determines if two objects are not equal.
NotEqual(Type) - Constructor for class org.oakgp.function.compare.NotEqual
Constructs a function that compares two arguments of the specified type.
nullableType(Type) - Static method in class org.oakgp.Type
Returns a type that represents values that can be either the given Type or null.

O

OnePointCrossover - Class in org.oakgp.evolve.crossover
Replaces a subtree in one parent with the subtree at the corresponding position of another parent.
OnePointCrossover(Random) - Constructor for class org.oakgp.evolve.crossover.OnePointCrossover
Creates a OnePointCrossover that uses the given Random to select crossover points.
OrElse - Class in org.oakgp.function.choice
Returns the first argument if not null, else returns the second argument.
OrElse(Type) - Constructor for class org.oakgp.function.choice.OrElse
Constructs a selection operator that returns values of the specified type.
org.oakgp - package org.oakgp
A tree-based genetic programming framework.
org.oakgp.evolve - package org.oakgp.evolve
Provides classes to use techniques inspired by biological evolution for the creation of new candidates from an existing generation.
org.oakgp.evolve.crossover - package org.oakgp.evolve.crossover
Provides classes for combining existing Node instances to create (evolve) new instances.
org.oakgp.evolve.mutate - package org.oakgp.evolve.mutate
Provides classes for mutating existing Node instances to create (evolve) new instances.
org.oakgp.function - package org.oakgp.function
Provides functions that accept arguments and produce a result.
org.oakgp.function.choice - package org.oakgp.function.choice
Provides functions for selection.
org.oakgp.function.classify - package org.oakgp.function.classify
Provides functions for classifying Node instances.
org.oakgp.function.coll - package org.oakgp.function.coll
Provides functions for working with collections.
org.oakgp.function.compare - package org.oakgp.function.compare
Provides functions for comparing the results of evaluating Node instances.
org.oakgp.function.hof - package org.oakgp.function.hof
Provides higher-order functions.
org.oakgp.function.math - package org.oakgp.function.math
Provides operations for performing arithmetic.
org.oakgp.generate - package org.oakgp.generate
Provides classes for the creation of an initial population.
org.oakgp.node - package org.oakgp.node
Provides classes that can be used to construct hierarchical tree structures.
org.oakgp.node.walk - package org.oakgp.node.walk
Provides mechanisms for recursively visiting nodes in a tree structure.
org.oakgp.primitive - package org.oakgp.primitive
Provides classes for specifying the contents of a primitive set.
org.oakgp.rank - package org.oakgp.rank
Provides classes for the evaluation and ranking of candidates in a generation.
org.oakgp.rank.fitness - package org.oakgp.rank.fitness
Provides classes for using a fitness function to rank the candidates of a generation.
org.oakgp.rank.tournament - package org.oakgp.rank.tournament
Provides classes for using a round-robin tournament to rank the candidates of a generation.
org.oakgp.select - package org.oakgp.select
Provides classes for the selection of Node instances.
org.oakgp.serialize - package org.oakgp.serialize
Provides class for the serialisation and deserialisation of Node instances.
org.oakgp.terminate - package org.oakgp.terminate
Provides implementations of termination criteria.
org.oakgp.util - package org.oakgp.util
Utility classes that support the functionality provided by the rest of the framework.

P

PointMutation - Class in org.oakgp.evolve.mutate
Randomly changes a point (node) in the parent.
PointMutation(Random, PrimitiveSet) - Constructor for class org.oakgp.evolve.mutate.PointMutation
Creates a PointMutation that uses the given Random to select nodes to mutate.
PrimitiveSet - Interface in org.oakgp.primitive
Represents the range of possible functions and terminal nodes to use during a genetic programming run.
PrimitiveSetImpl - Class in org.oakgp.primitive
Represents the range of possible functions and terminal nodes to use during a genetic programming run.
PrimitiveSetImpl(FunctionSet, ConstantSet, VariableSet, Random, double) - Constructor for class org.oakgp.primitive.PrimitiveSetImpl
Constructs a new primitive set consisting of the specified components.
process() - Method in interface org.oakgp.util.RunBuilder.ProcessRunner
Processes a genetic programming run using the values configured earlier for this RunBuilder.
process(GenerationRanker, GenerationEvolver, Predicate<RankedCandidates>, Collection<Node>) - Static method in class org.oakgp.util.Runner
Performs a Genetic Programming run.

R

Random - Interface in org.oakgp.util
Represents a random number generator.
rank(Collection<Node>) - Method in class org.oakgp.rank.fitness.FitnessFunctionGenerationRanker
Returns the sorted result of applying this object's FitnessFunction against each of the specified nodes.
rank(Collection<Node>) - Method in interface org.oakgp.rank.GenerationRanker
Returns the sorted result of evaluating the fitness of each of the specified nodes.
rank(Collection<Node>) - Method in class org.oakgp.rank.tournament.RoundRobinTournament
 
RankedCandidate - Class in org.oakgp.rank
Associates a Node with its fitness value.
RankedCandidate(Node, double) - Constructor for class org.oakgp.rank.RankedCandidate
Creates a RankedCandidate which associates the given Node with the given fitness value.
RankedCandidates - Class in org.oakgp.rank
A sorted immutable collection of RankedCandidate objects.
RankedCandidates(RankedCandidate[]) - Constructor for class org.oakgp.rank.RankedCandidates
Constructs a new collection of candidates sorted by their natural ordering.
RankedCandidates(RankedCandidate[], Comparator<RankedCandidate>) - Constructor for class org.oakgp.rank.RankedCandidates
Constructs a new collection of candidates sorted according to the given comparator.
RankSelection - Class in org.oakgp.select
The relative fitness of candidates is used to determine the probability that they will be selected.
RankSelection(Random, RankedCandidates) - Constructor for class org.oakgp.select.RankSelection
Creates a RankSelection that uses the given Random to select from the given RankedCandidates.
RankSelectionFactory - Class in org.oakgp.select
Returns instances of RankSelection.
RankSelectionFactory(Random) - Constructor for class org.oakgp.select.RankSelectionFactory
Creates a RankSelectionFactory that creates RankSelection instances that use the given Random.
readNode() - Method in class org.oakgp.serialize.NodeReader
Creates and returns a Node which represents the next s-expression read from the input.
Reduce - Class in org.oakgp.function.hof
Combines the elements of a collection by recursively applying a function.
Reduce(Type) - Constructor for class org.oakgp.function.hof.Reduce
Creates a higher order functions that recursively applies a function to the elements of a collection.
removeEldestEntry(Map.Entry<K, V>) - Method in class org.oakgp.util.CacheMap
 
replaceAll(Node, Predicate<Node>, Function<Node, Node>) - Static method in class org.oakgp.node.walk.NodeWalk
Returns a new Node resulting from replacing any components that match the specified predicate with the result of applying the specified function.
replaceAt(int, Node) - Method in class org.oakgp.Arguments
Returns a new Arguments resulting from replacing the existing Node at position index with replacement.
replaceAt(Node, int, DepthWalk.DepthWalkReplacement) - Static method in class org.oakgp.node.walk.DepthWalk
Returns a new Node resulting from replacing the Node at position index of the given Node with the result of replacement.
replaceAt(Node, int, Function<Node, Node>) - Static method in class org.oakgp.node.walk.NodeWalk
Returns a new Node resulting from replacing the Node at position index of the given Node with the result of replacement.
replaceAt(Node, int, Function<Node, Node>, Predicate<Node>) - Static method in class org.oakgp.node.walk.StrategyWalk
Returns a new Node resulting from replacing the Node at position index of the given Node with the result of replacement.
RoundRobinTournament - Class in org.oakgp.rank.tournament
Ranks and sorts the fitness of Node instances using a TwoPlayerGame in a round-robin tournament.
RoundRobinTournament(TwoPlayerGame) - Constructor for class org.oakgp.rank.tournament.RoundRobinTournament
Creates a RoundRobinTournament for the given TwoPlayerGame.
RunBuilder - Class in org.oakgp.util
Provides a convenient way to configure and start a genetic programming run.
RunBuilder() - Constructor for class org.oakgp.util.RunBuilder
 
RunBuilder.Config - Class in org.oakgp.util
Provides access to configuration values that have already been set on a RunBuilder.
RunBuilder.FunctionSetSetter - Interface in org.oakgp.util
Allows the function set to be configured.
RunBuilder.GenerationEvolverSetter - Class in org.oakgp.util
Provides the option to configure the how new generations evolve from existing ones, or to skip that option and instead configure the termination criteria.
RunBuilder.GenerationRankerSetter - Class in org.oakgp.util
Allows the configuration of the mechanism for ranking candidates.
RunBuilder.InitialPopulationSetter - Class in org.oakgp.util
Allows the initial population to be specified.
RunBuilder.MaxGenerationsTerminatorSetter - Interface in org.oakgp.util
Allows termination criteria to be configured.
RunBuilder.MaxGenerationsTerminatorSetterOrProcessRunner - Interface in org.oakgp.util
Provides a method for starting the genetic programming run or setting more termination criteria.
RunBuilder.MaxGenerationsWithoutImprovementTerminatorSetter - Interface in org.oakgp.util
Allows termination criteria to be configured.
RunBuilder.MaxGenerationsWithoutImprovementTerminatorSetterOrProcessRunner - Interface in org.oakgp.util
Provides a method for starting the genetic programming run or setting more termination criteria.
RunBuilder.PrimitiveSetSetter - Class in org.oakgp.util
Allows the primitive set to be configured.
RunBuilder.ProcessRunner - Interface in org.oakgp.util
Provides a method for starting the genetic programming run.
RunBuilder.RandomSetter - Class in org.oakgp.util
Provides the option to set a random number generator, or to skip that option and instead configure the primitive set.
RunBuilder.TerminatorSetter - Interface in org.oakgp.util
Allows termination criteria to be configured.
RunBuilder.TerminatorSetterOrProcessRunner - Interface in org.oakgp.util
Provides a method for starting the genetic programming run or setting more termination criteria.
RunBuilder.TreeDepthSetter - Class in org.oakgp.util
Allows configuration of the maximum tree depth of trees randomly generated for the initial population.
RunBuilder.VariablesRatioSetter - Class in org.oakgp.util
Allows the ratio of variables to constants to be configured.
RunBuilder.VariablesSetter - Class in org.oakgp.util
Allows the variable types to be configured.
Runner - Class in org.oakgp.util
Performs a Genetic Programming run.

S

sameTypes(Type[], Type[]) - Static method in class org.oakgp.Type
Returns true if the two arrays contain the same number of elements, and all corresponding pairs of elements in the two arrays are the same.
secondArg() - Method in class org.oakgp.Arguments
Returns the second argument in this Arguments.
selectSubNodeIndex(Random, Node) - Static method in class org.oakgp.util.Utils
Returns randomly selected index of a node from the specified tree.
selectSubNodeIndex(Random, int) - Static method in class org.oakgp.util.Utils
Returns a int value between 0 (inclusive) and the specified nodeCount value minus 1 (exclusive).
setConstants(ConstantNode...) - Method in class org.oakgp.util.RunBuilder.PrimitiveSetSetter
Sets the constants that are available for use in the construction of programs generated by the run.
setConstants(List<ConstantNode>) - Method in class org.oakgp.util.RunBuilder.PrimitiveSetSetter
Sets the constants that are available for use in the construction of programs generated by the run.
setFitnessFunction(FitnessFunction) - Method in class org.oakgp.util.RunBuilder.GenerationRankerSetter
Set the FitnessFunction used to determine the fitness of a candidate.
setFunctions(Function...) - Method in interface org.oakgp.util.RunBuilder.FunctionSetSetter
Sets the functions that are available for use in the construction of programs generated by the run.
setFunctions(List<Function>) - Method in interface org.oakgp.util.RunBuilder.FunctionSetSetter
Sets the functions that are available for use in the construction of programs generated by the run.
setFunctions(Function...) - Method in class org.oakgp.util.RunBuilder.VariablesRatioSetter
 
setFunctions(List<Function>) - Method in class org.oakgp.util.RunBuilder.VariablesRatioSetter
 
setGenerationEvolver(Function<RunBuilder.Config, GenerationEvolver>) - Method in class org.oakgp.util.RunBuilder.GenerationEvolverSetter
Set how new generations will be created from existing ones.
setGenerationRanker(GenerationRanker) - Method in class org.oakgp.util.RunBuilder.GenerationRankerSetter
Set the GenerationRanker used to rank and sort the candidates of a generation.
setInitialPopulation(Function<RunBuilder.Config, Collection<Node>>) - Method in class org.oakgp.util.RunBuilder.InitialPopulationSetter
Set the contents of the initial population.
setInitialPopulationSize(int) - Method in class org.oakgp.util.RunBuilder.InitialPopulationSetter
Set the number of randomly generated trees to include in the initial population.
setMaxGenerations(int) - Method in interface org.oakgp.util.RunBuilder.MaxGenerationsTerminatorSetter
Sets the maximum number of generations the run should process before stopping.
setMaxGenerationsWithoutImprovement(int) - Method in interface org.oakgp.util.RunBuilder.MaxGenerationsWithoutImprovementTerminatorSetter
Sets the number of consecutive generations without improvement the run should process before stopping.
setPrimitiveSet(PrimitiveSet) - Method in class org.oakgp.util.RunBuilder.PrimitiveSetSetter
Sets the functions and terminal nodes that are available for use in the construction of programs generated by the run.
setRandom(Random) - Method in class org.oakgp.util.RunBuilder.RandomSetter
Sets the Random to use to generate random numbers required by the run.
setRatioVariables(double) - Method in class org.oakgp.util.RunBuilder.VariablesRatioSetter
Sets the ratio of terminal nodes that should be variable nodes, rather than constant nodes.
setReturnType(Type) - Method in class org.oakgp.util.RunBuilder
Sets the required Type associated with the values produced as a result of evaluating the programs that are automatically generated by the run.
setTargetFitness(double) - Method in interface org.oakgp.util.RunBuilder.TerminatorSetter
Set the target fitness that when found should cause the run to stop.
setTerminator(Predicate<RankedCandidates>) - Method in interface org.oakgp.util.RunBuilder.TerminatorSetter
Sets the criteria used by this run to determine when it should stop.
setTreeDepth(int) - Method in class org.oakgp.util.RunBuilder.TreeDepthSetter
Set the maximum depth of the trees randomly generated for the initial population.
setTwoPlayerGame(TwoPlayerGame) - Method in class org.oakgp.util.RunBuilder.GenerationRankerSetter
Set the TwoPlayerGame used to determine the relative fitness of two candidates.
setVariables(Type...) - Method in class org.oakgp.util.RunBuilder.VariablesSetter
Sets the Types to associate with the variables available for use in the construction of programs generated by the run.
ShrinkMutation - Class in org.oakgp.evolve.mutate
Replaces a randomly selected function node of the parent with a terminal node.
ShrinkMutation(Random, PrimitiveSet) - Constructor for class org.oakgp.evolve.mutate.ShrinkMutation
Creates a ShrinkMutation that uses a Random to select function nodes to replace with terminals from a PrimitiveSet.
Signature - Class in org.oakgp.function
Represents the type signature of a Function.
simplify(Arguments) - Method in class org.oakgp.function.choice.If
 
simplify(Arguments) - Method in class org.oakgp.function.choice.OrElse
 
simplify(Arguments) - Method in class org.oakgp.function.choice.SwitchEnum
 
simplify(Arguments) - Method in class org.oakgp.function.compare.Equal
 
simplify(Arguments) - Method in class org.oakgp.function.compare.GreaterThan
 
simplify(Arguments) - Method in class org.oakgp.function.compare.GreaterThanOrEqual
 
simplify(Arguments) - Method in class org.oakgp.function.compare.NotEqual
 
simplify(Arguments) - Method in interface org.oakgp.function.Function
Attempts to find a simplified alternative to applying this function to the specified arguments.
simplify(Node) - Static method in class org.oakgp.NodeSimplifier
Attempts to reduce the size of the specified tree structures without altering its functionality.
size() - Method in class org.oakgp.rank.RankedCandidates
Returns the number of candidates in this collection.
StrategyWalk - Class in org.oakgp.node.walk
Provides a mechanism for recursively visiting nodes in a tree structure, controlled by a user-defined strategy.
stream() - Method in class org.oakgp.rank.RankedCandidates
Returns a sequential Stream with this collection as its source.
stringType() - Static method in class org.oakgp.Type
Returns the type associated with instances of java.lang.String.
subtract(BigDecimal, BigDecimal) - Method in class org.oakgp.function.math.BigDecimalUtils
 
subtract(BigInteger, BigInteger) - Method in class org.oakgp.function.math.BigIntegerUtils
 
subtract(Double, Double) - Method in class org.oakgp.function.math.DoubleUtils
 
subtract(Integer, Integer) - Method in class org.oakgp.function.math.IntegerUtils
 
subtract(Long, Long) - Method in class org.oakgp.function.math.LongUtils
 
SubtreeCrossover - Class in org.oakgp.evolve.crossover
Replaces a randomly selected subtree of one parent with a randomly selected subtree of another parent.
SubtreeCrossover(Random, int) - Constructor for class org.oakgp.evolve.crossover.SubtreeCrossover
Creates a SubtreeCrossover that uses the given Random to select subtrees from parents.
SubTreeMutation - Class in org.oakgp.evolve.mutate
Randomly replaces a subtree of the parent with a newly generated subtree.
SubTreeMutation(Random, TreeGenerator) - Constructor for class org.oakgp.evolve.mutate.SubTreeMutation
Creates a SubTreeMutation that uses the given TreeGenerator to generate new subtrees to replace existing subtrees.
swap(int, int) - Method in class org.oakgp.Arguments
Returns a new Arguments resulting from switching the node located at index index1 with the node located at index index2.
SwitchEnum - Class in org.oakgp.function.choice
A selection operator that uses the value of an enum to determine which code to evaluate.
SwitchEnum(Class<? extends Enum<?>>, Type, Type) - Constructor for class org.oakgp.function.choice.SwitchEnum
Constructs a selection operator that returns values of the specified type.

T

TargetFitnessTerminator - Class in org.oakgp.terminate
A predicate that returns true when a candidate has been found that fulfils the specified criteria.
TargetFitnessTerminator(Predicate<RankedCandidate>) - Constructor for class org.oakgp.terminate.TargetFitnessTerminator
Creates a predicate which returns the result of evaluating the given criteria with the best candidate of a RankedCandidates.
test(Node, int) - Method in interface org.oakgp.node.walk.DepthWalk.DepthWalkStrategy
 
test(RankedCandidates) - Method in class org.oakgp.terminate.CompositeTerminator
 
test(RankedCandidates) - Method in class org.oakgp.terminate.MaxGenerationsTerminator
 
test(RankedCandidates) - Method in class org.oakgp.terminate.MaxGenerationsWithoutImprovementTerminator
 
test(RankedCandidates) - Method in class org.oakgp.terminate.TargetFitnessTerminator
 
TestDataFitnessFunction<T> - Class in org.oakgp.rank.fitness
Calculates the fitness of a potential solution by comparing its results against the expected values.
TestDataFitnessFunction(Map<Assignments, T>, ToDoubleBiFunction<T, T>) - Constructor for class org.oakgp.rank.fitness.TestDataFitnessFunction
Creates a TestDataFitnessFunction which uses the given test cases and ranking function to determine the suitability of candidates.
thirdArg() - Method in class org.oakgp.Arguments
Returns the third argument in this Arguments.
toString() - Method in class org.oakgp.Arguments
 
toString() - Method in class org.oakgp.Assignments
 
toString() - Method in class org.oakgp.function.Signature
 
toString() - Method in class org.oakgp.node.ConstantNode
 
toString() - Method in class org.oakgp.node.FunctionNode
 
toString() - Method in class org.oakgp.node.VariableNode
 
toString() - Method in class org.oakgp.rank.RankedCandidate
 
toString() - Method in class org.oakgp.Type
 
toString() - Method in class org.oakgp.util.Void
 
TreeGenerator - Interface in org.oakgp.generate
Creates tree data structures.
TreeGeneratorImpl - Class in org.oakgp.generate
Provides different strategies for creating a tree data structure.
TRUE_NODE - Static variable in class org.oakgp.util.Utils
Represents the boolean value true.
TwoPlayerGame - Interface in org.oakgp.rank.tournament
Represents a two-player zero-sum game.
TwoPlayerGameCache - Class in org.oakgp.rank.tournament
Wraps a TwoPlayerGame to provide caching of results.
TwoPlayerGameCache(int, TwoPlayerGame) - Constructor for class org.oakgp.rank.tournament.TwoPlayerGameCache
Creates a cache of the given maximum size which will contain the results of evaluating the given TwoPlayerGame.
Type - Class in org.oakgp
Represents a data type.
type(String) - Static method in class org.oakgp.Type
Returns a Type with the given name.
type(String, Type...) - Static method in class org.oakgp.Type
Returns a Type with the given name and arguments.

U

Utils - Class in org.oakgp.util
Utility methods that support the functionality provided by the rest of the framework.

V

valueOf(String) - Static method in enum org.oakgp.node.NodeType
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.oakgp.node.NodeType
Returns an array containing the constants of this enum type, in the order they are declared.
VariableNode - Class in org.oakgp.node
Represents a variable.
VariableNode(int, Type) - Constructor for class org.oakgp.node.VariableNode
Constructs a new VariableNode with the specified ID.
VariableSet - Class in org.oakgp.primitive
Represents the range of possible variables to use during a genetic programming run.
Void - Class in org.oakgp.util
Represents a dummy value to return from functions that do not produce a result.
VOID - Static variable in class org.oakgp.util.Void
Singleton representing a void value.
VOID_CONSTANT - Static variable in class org.oakgp.util.Void
A constant node containing Void.VOID.
VOID_TYPE - Static variable in class org.oakgp.util.Void
Returns the type associated with instances of Void.VOID.

W

writeNode(Node) - Method in class org.oakgp.serialize.NodeWriter
Returns a String representation of the specified Node.
A B C D E F G H I J L M N O P R S T U V W 
Skip navigation links

OakGP Genetic Programming Framework