org.encog.ml.prg.expvalue
public final class EvaluateExpr extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2014. All Rights Reserved.