com.ibm.able.autotune
Class AutotuneMetricOperator
java.lang.Object
|
+--com.ibm.able.autotune.AutotuneMetricOperator
- All Implemented Interfaces:
- java.io.Serializable
- public class AutotuneMetricOperator
- extends java.lang.Object
- implements java.io.Serializable
This class performs binary relation tests against 2 AutotuneMetricValues
The result is either a boolean or a double (delta) value
use the test() method to check a boolean relation
use the computeDelta() method to compute a difference
- See Also:
- Serialized Form
Method Summary |
double |
computeDelta(AbleLiteral target,
AbleLiteral actual)
Compute the error or difference between a metric value and a target value
The error can be computed in 3 ways:
DELTA_AT : actual - target
DELTA_TA : target - actual
DELTA_ABS : absolute value of (actual - target) |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
int |
getOperation()
|
void |
setOperation(int operation)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EQUALS
public static final int EQUALS
GREATER_THAN
public static final int GREATER_THAN
LESS_THAN
public static final int LESS_THAN
GREATER_THAN_EQUALS
public static final int GREATER_THAN_EQUALS
LESS_THAN_EQUALS
public static final int LESS_THAN_EQUALS
BETWEEN
public static final int BETWEEN
IS
public static final int IS
DELTA_TA
public static final int DELTA_TA
DELTA_AT
public static final int DELTA_AT
DELTA_ABS
public static final int DELTA_ABS
operation
protected int operation
truth
protected boolean truth
delta
protected double delta
AutotuneMetricOperator
public AutotuneMetricOperator()
computeDelta
public double computeDelta(AbleLiteral target,
AbleLiteral actual)
throws AbleDataException
- Compute the error or difference between a metric value and a target value
The error can be computed in 3 ways:
DELTA_AT : actual - target
DELTA_TA : target - actual
DELTA_ABS : absolute value of (actual - target)
- Parameters:
target
- - the target valueactual
- - the actual or current metric value
setOperation
public void setOperation(int operation)
getOperation
public int getOperation()
Copyright
public static java.lang.String Copyright()
- Determine the copyright of this class.
- Returns:
- A String containing this class's copyright statement.
(C) Copyright IBM Corporation 1999, 2003