public interface ImpureFunction extends Function
An impure function is a function that conforms to at least one of the following criteria:
Modifier and Type | Method and Description |
---|---|
default boolean |
isPure()
Returns
false . |
evaluate, getDisplayName, getSignature, simplify
default boolean isPure()
false
.
Returns false
so that the node simplification process can recognise that this is an impure function and therefore function nodes that use it
cannot be replaced with their value.
isPure
in interface Function
ImpureFunction
OakGP Genetic Programming Framework