public final class NCE
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NCE.INTERNAL_UNITS
Defines NCE internal measuring units for common variables
|
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Logger |
ERR |
static GlobalErrorStack |
GlobalErrorStack |
static java.util.logging.Logger |
LOG |
static double |
MACHINE_EPS |
static double |
NCE_INF |
static double |
NCE_NEG_INF |
static double |
NCE_POS_INF |
static double |
NCE_ZERO |
static double |
NOTCOMPUTED |
static double |
SQRT_MACHINE_EPS |
static java.lang.String |
VERSION |
static java.lang.String |
VERSION_DATE |
Constructor and Description |
---|
NCE() |
Modifier and Type | Method and Description |
---|---|
static void |
init()
Initialization procedure for NCE environment.
|
static boolean |
isError(double value)
Check validity of argument
|
static boolean |
isSortedAscending(double[] arr)
Checks if an array of doubles is sorted ascending
|
static boolean |
isZero(double d)
Checks if argument is zero within system precision
|
static boolean |
sumToOne(double[] x)
Checks if argument sums to 1 within system precision
|
static void |
swap(double a,
double b)
Swaps arguments
|
static java.lang.String |
toStringDerivedInternalUnits()
Returns a formatted list of NCE internal derived measuring units
|
static java.lang.String |
toStringFundamentalInternalUnits()
Returns a formatted list of NCE internal fundamental measuring units
|
public static final java.lang.String VERSION
public static final java.lang.String VERSION_DATE
public static final double MACHINE_EPS
public static final double SQRT_MACHINE_EPS
public static final double NCE_ZERO
public static final double NCE_INF
public static final double NOTCOMPUTED
public static final double NCE_POS_INF
public static final double NCE_NEG_INF
public static final java.util.logging.Logger LOG
public static final java.util.logging.Logger ERR
public static GlobalErrorStack GlobalErrorStack
public static void init()
public static boolean isZero(double d)
d
- public static boolean sumToOne(double[] x)
x
- array of doublespublic static boolean isError(double value)
value
- value to be checkedpublic static void swap(double a, double b)
a
- b
- public static boolean isSortedAscending(double[] arr)
arr
- array of doublespublic static java.lang.String toStringFundamentalInternalUnits()
public static java.lang.String toStringDerivedInternalUnits()