public class NumericFunc
extends java.lang.Object
| Constructor and Description |
|---|
NumericFunc() |
| Modifier and Type | Method and Description |
|---|---|
static double |
discreteValue(double value,
int numSteps,
double stepSize) |
static boolean |
hasAdjustRoom(double target,
LimitType targetLimit,
double resource,
LimitType resourceLimit,
boolean positiveSen)
The resource variable is used to adjust the target variable.
|
static boolean |
sameSign(double x,
double y)
check if x and y are with the same sign
|
public static boolean sameSign(double x,
double y)
x - y - public static boolean hasAdjustRoom(double target,
LimitType targetLimit,
double resource,
LimitType resourceLimit,
boolean positiveSen)
target - target variable to be controlledtargetLimit - target variable limitresource - resource variable to be adjusted to control the target variableresourceLimit - resource variable limitpositiveSen - adjustment sensitivity sign. If positive, increase the resource variable will result in increasing target variable.public static double discreteValue(double value,
int numSteps,
double stepSize)