Package net.bmahe.genetics4j.gp.math
Class SimplificationRules
java.lang.Object
net.bmahe.genetics4j.gp.math.SimplificationRules
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Rulestatic final Rulestatic final Rulestatic final Rulestatic final Rulestatic final Rulestatic final Rulestatic final doublestatic final Rulestatic final Rulestatic final Rulestatic final org.apache.logging.log4j.Loggerstatic final Rulestatic final Rulestatic final Rulestatic final Rulestatic final Rulemultiplication of the same branch -> square of the first branchstatic final Rulestatic final Rulestatic final Rulestatic final Rulestatic final Rulestatic final Rulestatic final Rulestatic final Rulestatic final Rulestatic final Rulestatic final Rulestatic final Rule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static <T> TgetChildAs(TreeNode<Operation<?>> node, int childIndex, Class<T> clazz) protected static booleanhasChildOperation(TreeNode<Operation<?>> node, int childIndex, String name) protected static booleanisEqual(double v1, double v2) protected static booleanisEqual(double v1, double v2, double epsilon) protected static booleanisOperation(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)
-