|
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
java.lang.Object | +--com.hyperion.essbase.calculator.Calculator
This class provides some methods to deal with MISSING values according to Essbase rules. See Essbase docs which define behaviour of missing values in Essbase. Contains:
CalcBoolean| Fields inherited from interface com.hyperion.essbase.calculator.CalculatorConstants |
MISSG, MISSING, MISSING_BYTE, MISSING_CHAR, MISSING_DOUBLE, MISSING_FLOAT, MISSING_INT, MISSING_LONG, MISSING_SHORT, SKIPBOTH, SKIPMISSG, SKIPNONE, SKIPZERO |
| Method Summary | |
static double |
add(double a,
double b)
MISSING-aware double addition. |
static double |
divide(double a,
double b)
MISSING-aware double division. |
static double |
exp(double a)
MISSING-aware exponential function |
static void |
fillWithMissing(double[] dd)
Fills a given array with MISSING values |
static boolean |
ge(double x,
double y)
MISSING-aware "greater than or equal to" operator. |
int |
getSkip(java.lang.String skip)
|
static boolean |
gt(double x,
double y)
MISSING-aware "greater than" operator. |
static boolean |
isMissing(double d)
Checks if a given double is MISSING. |
static boolean |
le(double x,
double y)
MISSING-aware "less than or equal to" operator. |
static double |
log(double a)
MISSING-aware logarithm function |
static boolean |
lt(double x,
double y)
MISSING-aware "less than" operator. |
static double |
multiply(double a,
double b)
MISSING-aware double multiplication. |
static double |
percent(double a,
double b)
MISSING-aware percent (%) operation. |
static double |
pow(double a,
double b)
MISSING-aware power function |
static void |
sort(double[] dd)
Sorts array of doubles in place. |
static void |
sort(double[] dd,
int start,
int end)
Sorts part of an array of doubles in place. |
static double |
sqrt(double a)
MISSING-aware "square root of" function |
static double |
square(double a)
MISSING-aware "square of" function |
static double |
subtract(double a,
double b)
MISSING-aware double subtraction. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static double add(double a,
double b)
a - operandb - operand
public static double divide(double a,
double b)
a - operandb - operandpublic static double exp(double a)
a - argumentpublic static void fillWithMissing(double[] dd)
dd - double array
public static boolean ge(double x,
double y)
a - operandb - operandpublic int getSkip(java.lang.String skip)
public static boolean gt(double x,
double y)
a - operandb - operandpublic static boolean isMissing(double d)
d - double to check
public static boolean le(double x,
double y)
a - operandb - operandpublic static double log(double a)
a - argument
public static boolean lt(double x,
double y)
a - operandb - operand
public static double multiply(double a,
double b)
a - operandb - operand
public static double percent(double a,
double b)
a - operandb - operand
public static double pow(double a,
double b)
a - baseb - exponentpublic static void sort(double[] dd)
dd - double array
public static void sort(double[] dd,
int start,
int end)
dd - double arraystart - index of the startend - index of the endpublic static double sqrt(double a)
a - argumentpublic static double square(double a)
a - argument
public static double subtract(double a,
double b)
a - operandb - operand
|
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||