Package net.bmahe.genetics4j.gp.math
Class SimplificationRules
java.lang.Object
net.bmahe.genetics4j.gp.math.SimplificationRules
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Rule
static final Rule
static final Rule
static final Rule
static final Rule
static final Rule
static final Rule
static final double
static final Rule
static final Rule
static final Rule
static final org.apache.logging.log4j.Logger
static final Rule
static final Rule
static final Rule
static final Rule
static final Rule
multiplication of the same branch -> square of the first branchstatic final Rule
static final Rule
static final Rule
static final Rule
static final Rule
static final Rule
static final Rule
static final Rule
static final Rule
static final Rule
static final Rule
static final Rule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static <T> T
getChildAs
(TreeNode<Operation<?>> node, int childIndex, Class<T> clazz) protected static boolean
hasChildOperation
(TreeNode<Operation<?>> node, int childIndex, String name) protected static boolean
isEqual
(double v1, double v2) protected static boolean
isEqual
(double v1, double v2, double epsilon) protected static boolean
isOperation
(TreeNode<Operation<?>> node, String name)
-
Field Details
-
logger
public static final org.apache.logging.log4j.Logger logger -
DEFAULT_EPSILON
public static final double DEFAULT_EPSILON- See Also:
-
ADD_TWO_COEFFCIENTS
-
MUL_TWO_COEFFICIENTS
-
SUB_TWO_COEFFICIENTS
-
SUB_INPUT_FROM_SAME_INPUT
-
SUB_ZERO_FROM_INPUT
-
DIV_TWO_COEFFICIENT_FINITE
-
ADD_INPUT_TO_SAME_INPUT
-
MULTIPLY_INPUT_WITH_SAME_INPUT
-
MULTIPLY_INPUT_WITH_EXP_SAME_INPUT_COEFF
-
MUL_1_WITH_ANYTHING
-
MUL_ANYTHING_WITH_1
-
ADD_0_WITH_ANYTHING
-
ADD_ANYTHING_WITH_0
-
MUL_0_WITH_ANYTHING
-
MUL_ANYTHING_WITH_0
-
POW_0
-
POW_1
-
COS_OF_COEFFICIENT
-
SIN_OF_COEFFICIENT
-
SUB_SAME_BRANCHES
-
ADD_SAME_BRANCHES
-
DIV_SAME_BRANCHES
-
EXP_OF_COEFFICIENT
-
POW_TWO_COEFFICIENTS
-
MUL_SAME_BRANCHES
multiplication of the same branch -> square of the first branch -
COS_PI
-
SIN_PI
-
SIMPLIFY_RULES
-
-
Constructor Details
-
SimplificationRules
public SimplificationRules()
-
-
Method Details
-
isOperation
-
hasChildOperation
-
getChildAs
-
isEqual
protected static boolean isEqual(double v1, double v2, double epsilon) -
isEqual
protected static boolean isEqual(double v1, double v2)
-