|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.marmoush.jann.utils.MatrixUtils
public class MatrixUtils
The Class MatrixUtils.
Field Summary | |
---|---|
static double |
MACHEPS
The difference between 1 and the smallest exactly representable number greater than one. |
Constructor Summary | |
---|---|
MatrixUtils()
|
Method Summary | |
---|---|
static DoubleMatrix |
batchFeatureMapping(DoubleMatrix batchTrainingEx,
int degree,
int f1ColIndex,
int f2ColIndex)
|
static List<DoubleMatrix> |
batchMtrxToColVecsList(DoubleMatrix batch)
|
static DoubleMatrix |
colVecsList2BatchMtrx(List<DoubleMatrix> listOfVectors)
|
static boolean |
equals(DoubleMatrix mtrx1,
DoubleMatrix mtrx2)
|
static DoubleMatrix |
featureMapping(double x1,
double x2,
int degree)
|
static DoubleMatrix |
featureMapping(DoubleMatrix input,
int degree,
int f1Index,
int f2Index)
|
static DoubleMatrix |
featureScalingByAvrg(DoubleMatrix input)
|
static DoubleMatrix |
featureScalingBySTD(DoubleMatrix input)
|
static int |
getNumFeaturesMapped(int degree)
|
static String |
getSize(DoubleMatrix mtrx)
|
static DoubleMatrix |
inv(DoubleMatrix mtrx)
|
static DoubleMatrix |
pinv(DoubleMatrix x)
Computes the Moore–Penrose pseudoinverse using the SVD method. |
static void |
print(boolean withSize,
DoubleMatrix... mtrxList)
|
static void |
print(boolean withSize,
List<DoubleMatrix> mtrxList)
|
static void |
print(String[] names,
boolean withSize,
DoubleMatrix... mtrxList)
|
static void |
printSize(DoubleMatrix... mtrxArray)
|
static void |
printSize(DoubleMatrix mtrx)
|
static DoubleMatrix |
randomMatrix(int rows,
int cols,
double min,
double max)
Random matrix. |
static DoubleMatrix |
randomMatrixFloor(int rows,
int cols,
int min,
int max)
Random matrix floor. |
static double |
rank(DoubleMatrix A)
|
static double |
rankEff(DoubleMatrix A,
DoubleMatrix s)
|
static DoubleMatrix |
round(DoubleMatrix mtrx,
int decPoints)
|
static void |
setFillRandom(DoubleMatrix... matrices)
Sets the fill random. |
static void |
setFillRandomFloor(DoubleMatrix... matrices)
Sets the fill random floor. |
static void |
setFillRandomMinMax(double min,
double max,
DoubleMatrix... matrices)
Sets the fill random min max. |
static void |
setFillRandomMinMaxFloor(int min,
int max,
DoubleMatrix... matrices)
Sets the fill random min max floor. |
static double |
standardDeviation(DoubleMatrix input)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double MACHEPS
Constructor Detail |
---|
public MatrixUtils()
Method Detail |
---|
public static List<DoubleMatrix> batchMtrxToColVecsList(DoubleMatrix batch)
public static DoubleMatrix colVecsList2BatchMtrx(List<DoubleMatrix> listOfVectors)
public static boolean equals(DoubleMatrix mtrx1, DoubleMatrix mtrx2)
public static DoubleMatrix featureMapping(double x1, double x2, int degree)
public static DoubleMatrix featureMapping(DoubleMatrix input, int degree, int f1Index, int f2Index)
public static DoubleMatrix batchFeatureMapping(DoubleMatrix batchTrainingEx, int degree, int f1ColIndex, int f2ColIndex)
public static DoubleMatrix featureScalingByAvrg(DoubleMatrix input)
public static DoubleMatrix featureScalingBySTD(DoubleMatrix input)
public static int getNumFeaturesMapped(int degree)
public static String getSize(DoubleMatrix mtrx)
public static DoubleMatrix inv(DoubleMatrix mtrx)
public static DoubleMatrix pinv(DoubleMatrix x)
public static void print(boolean withSize, DoubleMatrix... mtrxList)
public static void print(boolean withSize, List<DoubleMatrix> mtrxList)
public static void print(String[] names, boolean withSize, DoubleMatrix... mtrxList)
public static void printSize(DoubleMatrix mtrx)
public static void printSize(DoubleMatrix... mtrxArray)
public static DoubleMatrix randomMatrix(int rows, int cols, double min, double max)
rows
- the rowscols
- the colsmin
- the minmax
- the max
public static DoubleMatrix randomMatrixFloor(int rows, int cols, int min, int max)
rows
- the rowscols
- the colsmin
- the minmax
- the max
public static double rank(DoubleMatrix A)
public static double rankEff(DoubleMatrix A, DoubleMatrix s)
public static DoubleMatrix round(DoubleMatrix mtrx, int decPoints)
public static void setFillRandom(DoubleMatrix... matrices)
matrices
- the new fill randompublic static void setFillRandomFloor(DoubleMatrix... matrices)
matrices
- the new fill random floorpublic static void setFillRandomMinMax(double min, double max, DoubleMatrix... matrices)
min
- the minmax
- the maxmatrices
- the matricespublic static void setFillRandomMinMaxFloor(int min, int max, DoubleMatrix... matrices)
min
- the minmax
- the maxmatrices
- the matricespublic static double standardDeviation(DoubleMatrix input)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |