|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.ml.prg.expvalue.EvaluateExpr
public final class EvaluateExpr
Simple utility class that performs some basic operations on ExpressionValue objects.
Method Summary | |
---|---|
static ExpressionValue |
add(ExpressionValue a,
ExpressionValue b)
Perform an add on two expression values. |
static ExpressionValue |
div(ExpressionValue a,
ExpressionValue b)
Perform a division on two expression values. |
static ExpressionValue |
equ(ExpressionValue a,
ExpressionValue b)
Perform an equal on two expressions. |
static ExpressionValue |
mul(ExpressionValue a,
ExpressionValue b)
Perform a multiply on two expression values. |
static ExpressionValue |
notequ(ExpressionValue a,
ExpressionValue b)
Perform a non-equal on two expressions. |
static ExpressionValue |
pow(ExpressionValue a,
ExpressionValue b)
Perform a protected div on two expression values. |
static ExpressionValue |
protectedDiv(ExpressionValue a,
ExpressionValue b)
Perform a protected div on two expression values. |
static ExpressionValue |
sub(ExpressionValue a,
ExpressionValue b)
Perform a subtract on two expression values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ExpressionValue add(ExpressionValue a, ExpressionValue b)
a
- The first argument.b
- The second argument.
public static ExpressionValue div(ExpressionValue a, ExpressionValue b)
a
- The first argument, must be numeric.b
- The second argument, must be numeric.
public static ExpressionValue equ(ExpressionValue a, ExpressionValue b)
a
- The first parameter to check.b
- The second parameter to check.
public static ExpressionValue mul(ExpressionValue a, ExpressionValue b)
a
- The first argument, must be numeric.b
- The second argument, must be numeric.
public static ExpressionValue notequ(ExpressionValue a, ExpressionValue b)
a
- The first parameter to check.b
- The second parameter to check.
public static ExpressionValue pow(ExpressionValue a, ExpressionValue b)
a
- The first argument, must be numeric.b
- The second argument, must be numeric.
public static ExpressionValue protectedDiv(ExpressionValue a, ExpressionValue b)
a
- The first argument, must be numeric.b
- The second argument, must be numeric.
public static ExpressionValue sub(ExpressionValue a, ExpressionValue b)
a
- The first argument, must be numeric.b
- The second argument, must be numeric.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |