public abstract class NCEMath
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
epsAbs |
static double |
epsAbsF |
static double |
epsAbsX |
static double |
epsRel |
static double |
epsRelX |
static java.lang.String |
ITER_CONTINUE |
static java.lang.String |
ITER_CONVERGED |
static java.lang.String |
ITER_CONVERGED_TOLF |
static java.lang.String |
ITER_CONVERGED_TOLX |
static java.lang.String |
ITER_DIVERGED |
static java.lang.String |
MAX_ITER_REACHED |
static int |
maxIter |
static java.lang.String |
MSG_CONVERGED_ON_TOLF |
static java.lang.String |
MSG_CONVERGED_ON_TOLX |
static java.lang.String |
MSG_NO_ROOT_EXISTS |
static java.lang.String |
MSG_NO_ROOT_FOUND |
static java.lang.String |
SILENT |
static java.lang.String |
VERBOSE |
Constructor and Description |
---|
NCEMath() |
Modifier and Type | Method and Description |
---|---|
static void |
copyMatrixRowToVector(double[] v,
double[][] m,
int r)
Copies row r of matrix m to vector v
|
static void |
copyVectorToMatrixRow(double[][] m,
int r,
double[] v)
Copies vector v into row r of matrix m
|
static double |
evalRootMeanSquareErr(double[] x1,
double[] x2)
Evaluates the root mean square error of dx = x1 - x2
|
static double |
evalRootMeanSquareSum(double[] f)
Evaluates the root mean square sum of f
|
static int |
returnMinValIndex(double[] x)
Returns the index at which value is the minimum
|
public static final double epsAbs
public static final double epsRel
public static final double epsAbsX
public static final double epsRelX
public static final double epsAbsF
public static final int maxIter
public static final java.lang.String ITER_CONTINUE
public static final java.lang.String ITER_CONVERGED
public static final java.lang.String ITER_DIVERGED
public static final java.lang.String ITER_CONVERGED_TOLX
public static final java.lang.String ITER_CONVERGED_TOLF
public static final java.lang.String MAX_ITER_REACHED
public static final java.lang.String VERBOSE
public static final java.lang.String SILENT
public static final java.lang.String MSG_NO_ROOT_FOUND
public static final java.lang.String MSG_NO_ROOT_EXISTS
public static final java.lang.String MSG_CONVERGED_ON_TOLX
public static final java.lang.String MSG_CONVERGED_ON_TOLF
public static void copyVectorToMatrixRow(double[][] m, int r, double[] v)
m
- matrixr
- row on which to copyv
- vector to be copiedpublic static void copyMatrixRowToVector(double[] v, double[][] m, int r)
m
- v
- r
- public static int returnMinValIndex(double[] x)
x
- array of valuesi
at which the minimum value in x
occurredpublic static double evalRootMeanSquareSum(double[] f)
f
- vectorpublic static double evalRootMeanSquareErr(double[] x1, double[] x2)
x1
- vectorx2
- vector