- 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.
- 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.
- 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.
- 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
-
- 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
-
- 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
.
- 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.
- 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.
- 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 Type
s 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.