com.lagodiuk.gp.symbolic.interpreter
Enum Functions
- java.lang.Object
-
- java.lang.Enum<Functions>
-
- com.lagodiuk.gp.symbolic.interpreter.Functions
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description ADDCONSTANTCOSDIVLNMULPOWSINSQRTSUBVARIABLE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static FunctionsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Functions[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface com.lagodiuk.gp.symbolic.interpreter.Function
argumentsCount, coefficientsCount, eval, getCoefficients, isCommutative, isNumber, isVariable, print, setCoefficients
-
-
-
-
Enum Constant Detail
-
CONSTANT
public static final Functions CONSTANT
-
VARIABLE
public static final Functions VARIABLE
-
ADD
public static final Functions ADD
-
SUB
public static final Functions SUB
-
MUL
public static final Functions MUL
-
DIV
public static final Functions DIV
-
SQRT
public static final Functions SQRT
-
POW
public static final Functions POW
-
LN
public static final Functions LN
-
SIN
public static final Functions SIN
-
COS
public static final Functions COS
-
-
Method Detail
-
values
public static Functions[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Functions c : Functions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Functions valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-
DMelt 3.0 © DataMelt by jWork.ORG