Class MathUtils
java.lang.Object
MathUtils
public class MathUtils
- extends java.lang.Object
Method Summary |
static void |
arrCpy(double[] arrLfSrc,
double[] arrLfDst)
|
static double[] |
arrDblCpy(double[] arrLfSrc,
int nLen)
|
static double[] |
arrDblCpyRange(double[] arrLfSrc,
int nStart,
int nStop)
|
static double |
arrDiffDot(double[] arrLf1,
double[] arrLf2,
double[] arrLfDot)
|
static double |
arrDistSqrd(double[] arrLf1,
double[] arrLf2)
|
static double |
arrDot(double[] arrLf1,
double[] arrLf2)
|
static void |
arrMults(double[] arrLfMult,
double lfMultBy)
|
static void |
arrSubtrAndStore(double[] arrLfSubFrom,
double[] arrLfSub)
|
static java.lang.String |
arrToString(double[] arrLfPt)
|
static void |
linCombine(double lfA,
double[] arrLfA,
double lfB,
double[] arrLfB,
double[] arrLfStore)
|
static void |
makeSymmetric(Jama.Matrix M)
Helper function to force a matrix to be symmetric in the simplest possible way
(just copy (i,j) onto (j,i). |
static void |
normalize(double[] arrLfToNorm)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MathUtils
public MathUtils()
arrSubtrAndStore
public static void arrSubtrAndStore(double[] arrLfSubFrom,
double[] arrLfSub)
linCombine
public static void linCombine(double lfA,
double[] arrLfA,
double lfB,
double[] arrLfB,
double[] arrLfStore)
arrDblCpy
public static double[] arrDblCpy(double[] arrLfSrc,
int nLen)
arrDblCpyRange
public static double[] arrDblCpyRange(double[] arrLfSrc,
int nStart,
int nStop)
arrToString
public static java.lang.String arrToString(double[] arrLfPt)
arrDiffDot
public static double arrDiffDot(double[] arrLf1,
double[] arrLf2,
double[] arrLfDot)
arrDot
public static double arrDot(double[] arrLf1,
double[] arrLf2)
arrDistSqrd
public static double arrDistSqrd(double[] arrLf1,
double[] arrLf2)
arrMults
public static void arrMults(double[] arrLfMult,
double lfMultBy)
arrCpy
public static void arrCpy(double[] arrLfSrc,
double[] arrLfDst)
normalize
public static void normalize(double[] arrLfToNorm)
makeSymmetric
public static void makeSymmetric(Jama.Matrix M)
- Helper function to force a matrix to be symmetric in the simplest possible way
(just copy (i,j) onto (j,i).
Only useful for matrices that are almost symmetric, except for numerical error
- Parameters:
M
-