Uses of Interface
net.bmahe.genetics4j.gp.OperationFactory
Package
Description
-
Uses of OperationFactory in net.bmahe.genetics4j.gp
Modifier and TypeMethodDescriptionstatic OperationFactory
OperationFactories.of
(Class[] acceptedTypes, Class returnedType, Function<InputSpec, Operation> operationBuilder) static OperationFactory
OperationFactories.of
(String name, Class[] acceptedTypes, Class returnedType, BiFunction<Object[], Object[], Object> compute) static <T,
U, V> OperationFactory OperationFactories.ofBinary
(String name, Class<T> acceptedType1, Class<U> acceptedType2, Class<V> returnedType, BiFunction<T, U, V> compute) static OperationFactory
OperationFactories.ofCoefficient
(String name, Class returnedType, Object value) static OperationFactory
OperationFactories.ofOperationSupplier
(Class[] acceptedTypes, Class returnedType, Supplier<Operation> buildSupplier) static <T> OperationFactory
OperationFactories.ofTerminal
(String name, Class<T> returnedType, Supplier<T> compute) static <T,
U> OperationFactory OperationFactories.ofUnary
(String name, Class<T> acceptedType, Class<U> returnedType, Function<T, U> compute) -
Uses of OperationFactory in net.bmahe.genetics4j.gp.math
Modifier and TypeFieldDescriptionstatic final OperationFactory
Functions.ADD
static final OperationFactory
Functions.COS
static final OperationFactory
Functions.DIV
static OperationFactory
Terminals.E
static final OperationFactory
Functions.EXP
static final OperationFactory
Functions.MUL
static OperationFactory
Terminals.PI
static final OperationFactory
Functions.POW
static final OperationFactory
Functions.SIN
static final OperationFactory
Functions.STR_TO_DOUBLE
static final OperationFactory
Functions.SUB
Modifier and TypeMethodDescriptionstatic OperationFactory
Terminals.Coefficient
(RandomGenerator randomGenerator, double min, double max) static OperationFactory
Terminals.CoefficientInt
(RandomGenerator randomGenerator, int min, int max) static OperationFactory
Terminals.CoefficientRounded
(RandomGenerator randomGenerator, int min, int max) static <T> OperationFactory
static <T> OperationFactory
Terminals.Input
(RandomGenerator randomGenerator, Class<T> clazz) static OperationFactory
Terminals.InputDouble
(RandomGenerator randomGenerator) static OperationFactory
Terminals.InputString
(RandomGenerator randomGenerator) -
Uses of OperationFactory in net.bmahe.genetics4j.gp.mutation
Modifier and TypeMethodDescriptionprotected List
<OperationFactory> NodeReplacementMutator.findReplacementCandidates
(Program program, TreeNode<Operation<?>> root) -
Uses of OperationFactory in net.bmahe.genetics4j.gp.program
Modifier and TypeFieldDescriptionprivate List
<OperationFactory> ImmutableProgram.Builder.functions
private final Set
<OperationFactory> ImmutableProgram.functions
private List
<OperationFactory> ImmutableProgram.Builder.terminal
private final Set
<OperationFactory> ImmutableProgram.terminal
Modifier and TypeMethodDescriptionProgramHelper.pickRandomFunction
(Program program) <T> OperationFactory
ProgramHelper.pickRandomFunction
(Program program, Class<T> requiredClass) ProgramHelper.pickRandomFunctionOrTerminal
(Program program) <T> OperationFactory
ProgramHelper.pickRandomFunctionOrTerminal
(Program program, Class<T> requiredClass) ProgramHelper.pickRandomTerminal
(Program program) <T> OperationFactory
ProgramHelper.pickRandomTerminal
(Program program, Class<T> requiredClass) Modifier and TypeMethodDescriptionImmutableProgram.functions()
abstract Set
<OperationFactory> Program.functions()
ImmutableProgram.terminal()
abstract Set
<OperationFactory> Program.terminal()
Modifier and TypeMethodDescriptionfinal ImmutableProgram.Builder
ImmutableProgram.Builder.addFunctions
(OperationFactory element) Adds one element tofunctions
set.final ImmutableProgram.Builder
ImmutableProgram.Builder.addFunctions
(OperationFactory... elements) Adds elements tofunctions
set.final ImmutableProgram.Builder
ImmutableProgram.Builder.addTerminal
(OperationFactory element) Adds one element toterminal
set.final ImmutableProgram.Builder
ImmutableProgram.Builder.addTerminal
(OperationFactory... elements) Adds elements toterminal
set.final ImmutableProgram
ImmutableProgram.withFunctions
(OperationFactory... elements) Copy the current immutable object with elements that replace the content offunctions
.final ImmutableProgram
ImmutableProgram.withTerminal
(OperationFactory... elements) Copy the current immutable object with elements that replace the content ofterminal
.Modifier and TypeMethodDescriptionfinal ImmutableProgram.Builder
ImmutableProgram.Builder.addAllFunctions
(Iterable<? extends OperationFactory> elements) Adds elements tofunctions
set.final ImmutableProgram.Builder
ImmutableProgram.Builder.addAllTerminal
(Iterable<? extends OperationFactory> elements) Adds elements toterminal
set.final ImmutableProgram.Builder
ImmutableProgram.Builder.functions
(Iterable<? extends OperationFactory> elements) Sets or replaces all elements forfunctions
set.static ImmutableProgram
ImmutableProgram.of
(Iterable<? extends OperationFactory> functions, Iterable<? extends OperationFactory> terminal, InputSpec inputSpec, int maxDepth) Construct a new immutableProgram
instance.static ImmutableProgram
ImmutableProgram.of
(Set<OperationFactory> functions, Set<OperationFactory> terminal, InputSpec inputSpec, int maxDepth) Construct a new immutableProgram
instance.final ImmutableProgram.Builder
ImmutableProgram.Builder.terminal
(Iterable<? extends OperationFactory> elements) Sets or replaces all elements forterminal
set.final ImmutableProgram
ImmutableProgram.withFunctions
(Iterable<? extends OperationFactory> elements) Copy the current immutable object with elements that replace the content offunctions
.final ImmutableProgram
ImmutableProgram.withTerminal
(Iterable<? extends OperationFactory> elements) Copy the current immutable object with elements that replace the content ofterminal
.ModifierConstructorDescriptionprivate
ImmutableProgram
(Iterable<? extends OperationFactory> functions, Iterable<? extends OperationFactory> terminal, InputSpec inputSpec, int maxDepth) private
ImmutableProgram
(ImmutableProgram original, Set<OperationFactory> functions, Set<OperationFactory> terminal, InputSpec inputSpec, int maxDepth)