org.encog.ml.prg.extension
Class StandardExtensions
- java.lang.Object
-
- org.encog.ml.prg.extension.StandardExtensions
-
public class StandardExtensions extends java.lang.ObjectThis class defines the standard opcodes for Encog programs. The operator precedence is based on the following article. http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B#Operator_precedence
-
-
Field Summary
Fields Modifier and Type Field and Description static ProgramExtensionTemplateEXTENSION_ABSStandard numeric absolute value function.static ProgramExtensionTemplateEXTENSION_ACOSStandard numeric acos function.static ProgramExtensionTemplateEXTENSION_ADDStandard binary add operator.static ProgramExtensionTemplateEXTENSION_ANDStandard boolean binary and operator.static ProgramExtensionTemplateEXTENSION_ASINStandard numeric asin function.static ProgramExtensionTemplateEXTENSION_ATANStandard numeric atan function.static ProgramExtensionTemplateEXTENSION_ATAN2Standard numeric atan2 function.static ProgramExtensionTemplateEXTENSION_CBOOLStandard string cbool function.static ProgramExtensionTemplateEXTENSION_CEILStandard numeric ceil function.static ProgramExtensionTemplateEXTENSION_CFLOATStandard string cfloat function.static ProgramExtensionTemplateEXTENSION_CINTStandard string cint function.static ProgramExtensionTemplateEXTENSION_CLAMPStandard string clamp function.static ProgramExtensionTemplateEXTENSION_CONST_COMMON_POOLstatic ProgramExtensionTemplateEXTENSION_CONST_SUPPORTNumeric const.static ProgramExtensionTemplateEXTENSION_COSStandard numeric cos function.static ProgramExtensionTemplateEXTENSION_COSHStandard numeric cosh function.static ProgramExtensionTemplateEXTENSION_CSTRStandard string cstr function.static ProgramExtensionTemplateEXTENSION_DIVStandard binary div operator.static ProgramExtensionTemplateEXTENSION_EQUALStandard boolean binary equal operator.static ProgramExtensionTemplateEXTENSION_EXPStandard numeric exp function.static ProgramExtensionTemplateEXTENSION_FLOORStandard numeric floor function.static ProgramExtensionTemplateEXTENSION_FORMATNumeric formatting function.static ProgramExtensionTemplateEXTENSION_GTStandard boolean binary greater than operator.static ProgramExtensionTemplateEXTENSION_GTEStandard boolean binary greater than operator.static ProgramExtensionTemplateEXTENSION_IFFStandard string iff function.static ProgramExtensionTemplateEXTENSION_LEFTString left function.static ProgramExtensionTemplateEXTENSION_LENGTHStandard string length function.static ProgramExtensionTemplateEXTENSION_LOGStandard numeric log function.static ProgramExtensionTemplateEXTENSION_LOG10Standard numeric log10 function.static ProgramExtensionTemplateEXTENSION_LTStandard boolean binary less than operator.static ProgramExtensionTemplateEXTENSION_LTEStandard boolean binary less than operator.static ProgramExtensionTemplateEXTENSION_MAXStandard numeric max function.static ProgramExtensionTemplateEXTENSION_MINStandard numeric max function.static ProgramExtensionTemplateEXTENSION_MULStandard binary multiply operator.static ProgramExtensionTemplateEXTENSION_NEGStandard unary minus operator.static ProgramExtensionTemplateEXTENSION_NOTStandard boolean binary and operator.static ProgramExtensionTemplateEXTENSION_NOT_EQUALStandard boolean not equal operator.static ProgramExtensionTemplateEXTENSION_ORStandard boolean binary or operator.static ProgramExtensionTemplateEXTENSION_PDIVStandard binary protected div operator.static ProgramExtensionTemplateEXTENSION_POWERStandard binary power operator.static ProgramExtensionTemplateEXTENSION_POWFNStandard numeric pow function.static ProgramExtensionTemplateEXTENSION_RANDOMStandard numeric random function.static ProgramExtensionTemplateEXTENSION_RIGHTString right function.static ProgramExtensionTemplateEXTENSION_ROUNDStandard numeric log10 function.static ProgramExtensionTemplateEXTENSION_SINStandard numeric sin function.static ProgramExtensionTemplateEXTENSION_SINHStandard numeric sinh function.static ProgramExtensionTemplateEXTENSION_SQRTStandard numeric sqrt function.static ProgramExtensionTemplateEXTENSION_SUBStandard binary sub operator.static ProgramExtensionTemplateEXTENSION_TANStandard numeric tan function.static ProgramExtensionTemplateEXTENSION_TANHStandard numeric tanh function.static ProgramExtensionTemplateEXTENSION_TODEGStandard numeric toDegrees function.static ProgramExtensionTemplateEXTENSION_TORADStandard numeric toRadians function.static ProgramExtensionTemplateEXTENSION_VAR_SUPPORTVariable support.
-
Constructor Summary
Constructors Constructor and Description StandardExtensions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidcreateAll(EncogProgramContext context)Add all known opcodes to a context.static voidcreateBasicFunctions(EncogProgramContext context)Add the opcodes for basic operations to a context.static voidcreateBooleanOperators(EncogProgramContext context)Add the opcodes for boolean operations to a context.static voidcreateConversionFunctions(EncogProgramContext context)Add the opcodes for type conversion operations to a context.static voidcreateNumericOperators(EncogProgramContext context)Add the opcodes for numeric operations to a context, do not use protected division.static voidcreateNumericOperators(EncogProgramContext context, boolean protectedDiv)Add the opcodes for numeric operations to a context.static voidcreateStringFunctions(EncogProgramContext context)Add the opcodes for string operations to a context.static voidcreateTrigFunctions(EncogProgramContext context)Add the opcodes for trig functions operations to a context.
-
-
-
Field Detail
-
EXTENSION_CONST_COMMON_POOL
public static final ProgramExtensionTemplate EXTENSION_CONST_COMMON_POOL
-
EXTENSION_VAR_SUPPORT
public static ProgramExtensionTemplate EXTENSION_VAR_SUPPORT
Variable support.
-
EXTENSION_CONST_SUPPORT
public static ProgramExtensionTemplate EXTENSION_CONST_SUPPORT
Numeric const.
-
EXTENSION_NEG
public static ProgramExtensionTemplate EXTENSION_NEG
Standard unary minus operator.
-
EXTENSION_ADD
public static ProgramExtensionTemplate EXTENSION_ADD
Standard binary add operator.
-
EXTENSION_SUB
public static ProgramExtensionTemplate EXTENSION_SUB
Standard binary sub operator.
-
EXTENSION_MUL
public static ProgramExtensionTemplate EXTENSION_MUL
Standard binary multiply operator.
-
EXTENSION_DIV
public static ProgramExtensionTemplate EXTENSION_DIV
Standard binary div operator.
-
EXTENSION_PDIV
public static ProgramExtensionTemplate EXTENSION_PDIV
Standard binary protected div operator.
-
EXTENSION_POWER
public static ProgramExtensionTemplate EXTENSION_POWER
Standard binary power operator.
-
EXTENSION_AND
public static ProgramExtensionTemplate EXTENSION_AND
Standard boolean binary and operator.
-
EXTENSION_NOT
public static ProgramExtensionTemplate EXTENSION_NOT
Standard boolean binary and operator.
-
EXTENSION_OR
public static ProgramExtensionTemplate EXTENSION_OR
Standard boolean binary or operator.
-
EXTENSION_EQUAL
public static ProgramExtensionTemplate EXTENSION_EQUAL
Standard boolean binary equal operator.
-
EXTENSION_NOT_EQUAL
public static ProgramExtensionTemplate EXTENSION_NOT_EQUAL
Standard boolean not equal operator.
-
EXTENSION_GT
public static ProgramExtensionTemplate EXTENSION_GT
Standard boolean binary greater than operator.
-
EXTENSION_LT
public static ProgramExtensionTemplate EXTENSION_LT
Standard boolean binary less than operator.
-
EXTENSION_GTE
public static ProgramExtensionTemplate EXTENSION_GTE
Standard boolean binary greater than operator.
-
EXTENSION_LTE
public static ProgramExtensionTemplate EXTENSION_LTE
Standard boolean binary less than operator.
-
EXTENSION_ABS
public static ProgramExtensionTemplate EXTENSION_ABS
Standard numeric absolute value function.
-
EXTENSION_ACOS
public static ProgramExtensionTemplate EXTENSION_ACOS
Standard numeric acos function.
-
EXTENSION_ASIN
public static ProgramExtensionTemplate EXTENSION_ASIN
Standard numeric asin function.
-
EXTENSION_ATAN
public static ProgramExtensionTemplate EXTENSION_ATAN
Standard numeric atan function.
-
EXTENSION_ATAN2
public static ProgramExtensionTemplate EXTENSION_ATAN2
Standard numeric atan2 function.
-
EXTENSION_CEIL
public static ProgramExtensionTemplate EXTENSION_CEIL
Standard numeric ceil function.
-
EXTENSION_COS
public static ProgramExtensionTemplate EXTENSION_COS
Standard numeric cos function.
-
EXTENSION_COSH
public static ProgramExtensionTemplate EXTENSION_COSH
Standard numeric cosh function.
-
EXTENSION_EXP
public static ProgramExtensionTemplate EXTENSION_EXP
Standard numeric exp function.
-
EXTENSION_FLOOR
public static ProgramExtensionTemplate EXTENSION_FLOOR
Standard numeric floor function.
-
EXTENSION_LOG
public static ProgramExtensionTemplate EXTENSION_LOG
Standard numeric log function.
-
EXTENSION_LOG10
public static ProgramExtensionTemplate EXTENSION_LOG10
Standard numeric log10 function.
-
EXTENSION_MAX
public static ProgramExtensionTemplate EXTENSION_MAX
Standard numeric max function.
-
EXTENSION_MIN
public static ProgramExtensionTemplate EXTENSION_MIN
Standard numeric max function.
-
EXTENSION_POWFN
public static ProgramExtensionTemplate EXTENSION_POWFN
Standard numeric pow function.
-
EXTENSION_RANDOM
public static ProgramExtensionTemplate EXTENSION_RANDOM
Standard numeric random function.
-
EXTENSION_ROUND
public static ProgramExtensionTemplate EXTENSION_ROUND
Standard numeric log10 function.
-
EXTENSION_SIN
public static ProgramExtensionTemplate EXTENSION_SIN
Standard numeric sin function.
-
EXTENSION_SINH
public static ProgramExtensionTemplate EXTENSION_SINH
Standard numeric sinh function.
-
EXTENSION_SQRT
public static ProgramExtensionTemplate EXTENSION_SQRT
Standard numeric sqrt function.
-
EXTENSION_TAN
public static ProgramExtensionTemplate EXTENSION_TAN
Standard numeric tan function.
-
EXTENSION_TANH
public static ProgramExtensionTemplate EXTENSION_TANH
Standard numeric tanh function.
-
EXTENSION_TODEG
public static ProgramExtensionTemplate EXTENSION_TODEG
Standard numeric toDegrees function.
-
EXTENSION_TORAD
public static ProgramExtensionTemplate EXTENSION_TORAD
Standard numeric toRadians function.
-
EXTENSION_LENGTH
public static ProgramExtensionTemplate EXTENSION_LENGTH
Standard string length function.
-
EXTENSION_FORMAT
public static ProgramExtensionTemplate EXTENSION_FORMAT
Numeric formatting function.
-
EXTENSION_LEFT
public static ProgramExtensionTemplate EXTENSION_LEFT
String left function.
-
EXTENSION_RIGHT
public static ProgramExtensionTemplate EXTENSION_RIGHT
String right function.
-
EXTENSION_CINT
public static ProgramExtensionTemplate EXTENSION_CINT
Standard string cint function.
-
EXTENSION_CFLOAT
public static ProgramExtensionTemplate EXTENSION_CFLOAT
Standard string cfloat function.
-
EXTENSION_CSTR
public static ProgramExtensionTemplate EXTENSION_CSTR
Standard string cstr function.
-
EXTENSION_CBOOL
public static ProgramExtensionTemplate EXTENSION_CBOOL
Standard string cbool function.
-
EXTENSION_IFF
public static ProgramExtensionTemplate EXTENSION_IFF
Standard string iff function.
-
EXTENSION_CLAMP
public static ProgramExtensionTemplate EXTENSION_CLAMP
Standard string clamp function.
-
-
Method Detail
-
createAll
public static void createAll(EncogProgramContext context)
Add all known opcodes to a context.- Parameters:
context- The context to add the opcodes to.
-
createBasicFunctions
public static void createBasicFunctions(EncogProgramContext context)
Add the opcodes for basic operations to a context.- Parameters:
context- The context to add the opcodes to.
-
createBooleanOperators
public static void createBooleanOperators(EncogProgramContext context)
Add the opcodes for boolean operations to a context.- Parameters:
context- The context to add the opcodes to.
-
createConversionFunctions
public static void createConversionFunctions(EncogProgramContext context)
Add the opcodes for type conversion operations to a context.- Parameters:
context- The context to add the opcodes to.
-
createNumericOperators
public static void createNumericOperators(EncogProgramContext context)
Add the opcodes for numeric operations to a context, do not use protected division.- Parameters:
context- The context to add the opcodes to.
-
createNumericOperators
public static void createNumericOperators(EncogProgramContext context, boolean protectedDiv)
Add the opcodes for numeric operations to a context.- Parameters:
context- The context to add the opcodes to.protectedDiv- Should protected division be used.
-
createStringFunctions
public static void createStringFunctions(EncogProgramContext context)
Add the opcodes for string operations to a context.- Parameters:
context- The context to add the opcodes to.
-
createTrigFunctions
public static void createTrigFunctions(EncogProgramContext context)
Add the opcodes for trig functions operations to a context.- Parameters:
context- The context to add the opcodes to.
-
-
DMelt 3.0 © DataMelt by jWork.ORG