|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.SDUtilities
public class SDUtilities
This class contains functions commonly used in System Dynamic modeling.
| Method Summary | |
|---|---|
static double |
getTableFunctionArea(TableFunction tableFunction,
double start,
double end)
Returns the area under a tableFunction (with linear
interpolation and Nearest out-of-range action)
between start and end. |
static double |
lookupBackward(TableFunction tableFunction,
double x)
For a tableFunction (with linear
interpolation and Nearest out-of-range action)
returns the value of the left point of interval for x
value. |
static double |
lookupExtrapolate(TableFunction tableFunction,
double x)
For a tableFunction (with linear
interpolation and Nearest out-of-range action)
returns the value for the given x using extrapolation if
needed. |
static double |
lookupForward(TableFunction tableFunction,
double x)
For a tableFunction (with linear
interpolation and Nearest out-of-range action)
returns the next value between arguments. |
static double |
lookupInvert(TableFunction tableFunction,
double y)
Finds the input that, when used in the tableFunction (with
linear interpolation and Nearest
out-of-range action) would return y. |
static double |
lookupSlope(TableFunction tableFunction,
double x,
double mode)
Finds the slope at x in the tableFunction
according to the given mode. for a
tableFunction (with linear interpolation
and Nearest out-of-range action). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double getTableFunctionArea(TableFunction tableFunction,
double start,
double end)
tableFunction (with linear
interpolation and Nearest out-of-range action)
between start and end.
tableFunction - start - end -
tableFunction
public static double lookupExtrapolate(TableFunction tableFunction,
double x)
tableFunction (with linear
interpolation and Nearest out-of-range action)
returns the value for the given x using extrapolation if
needed..get(x) method
for a table function with Extrapolate out-of-range
action.
tableFunction - x -
x using extrapolation if
needed
public static double lookupSlope(TableFunction tableFunction,
double x,
double mode)
x in the tableFunction
according to the given mode. for a
tableFunction (with linear interpolation
and Nearest out-of-range action).x from one point to the next. If
x is the same as a point in table function then the average
of the slope before and after x is returned.x is out of range of table function (bigger
than the biggest x point or smaller than the smallest
x point) what is returned depends on mode, If
mode is 0 then 0 is returned, this is analogous to a
Nearest out-of-range action. If mode is
positive, then the slope of the closes segment is used
(Extrapolate out-of-range action). If mode
is negative then Double.NaN is returned.
tableFunction - x - mode -
x in the tableFunction
public static double lookupBackward(TableFunction tableFunction,
double x)
tableFunction (with linear
interpolation and Nearest out-of-range action)
returns the value of the left point of interval for x
value.
tableFunction - x -
x
value
public static double lookupForward(TableFunction tableFunction,
double x)
tableFunction (with linear
interpolation and Nearest out-of-range action)
returns the next value between arguments.
tableFunction - x -
public static double lookupInvert(TableFunction tableFunction,
double y)
tableFunction (with
linear interpolation and Nearest
out-of-range action) would return y.y is outside the range of table
function (bigger than the biggest y value or smaller than the smallest y
value) the function will return Double.NaN.
tableFunction - y -
y
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||