|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use GMatrix | |
---|---|
com.gregdennis.drej | |
javax.vecmath |
Uses of GMatrix in com.gregdennis.drej |
---|
Methods in com.gregdennis.drej that return GMatrix | |
---|---|
static GMatrix |
Regression.kernelMatrix(GMatrix data,
Kernel kernel)
Returns a kernel matrix for the specified data matrix (each column contains a data point) and the specified kernel. |
static GMatrix |
Matrices.randomGaussianMatrix(int rows,
int cols)
Returns a matrix with the specified number of rows and columns where each element is randomly chosen from a Gaussian ("normal") distribution with mean 0.0 and standard deviation 1.0. |
static GMatrix |
Matrices.randomUniformMatrix(int rows,
int cols)
Returns a matrix with the specified number of rows and columns where each element is randomly chosen from a uniform distribution on the interval [0, 1]. |
Methods in com.gregdennis.drej with parameters of type GMatrix | |
---|---|
static GMatrix |
Regression.kernelMatrix(GMatrix data,
Kernel kernel)
Returns a kernel matrix for the specified data matrix (each column contains a data point) and the specified kernel. |
static GVector |
Matrices.mapCols(Function fun,
GMatrix points)
Maps the given function to each column in the points matrix and returns the vector of values. |
static GVector |
Matrices.mapRows(Function fun,
GMatrix points)
Maps the given function to each row in the points matrix and returns the vector of values. |
static Representer |
Regression.solve(GMatrix data,
GVector values,
Kernel kernel,
double lambda)
Performs a least squares regression for the specified data matrix (one data point in each column), and returns a representer function fit to the data. |
Constructors in com.gregdennis.drej with parameters of type GMatrix | |
---|---|
Representer(Kernel kernel,
GMatrix data,
GVector coeffs)
Constructs a new representer with the specified kernel, data matrix, and coefficients. |
Uses of GMatrix in javax.vecmath |
---|
Methods in javax.vecmath with parameters of type GMatrix | |
---|---|
void |
GMatrix.add(GMatrix m1)
Sets the value of this matrix to sum of itself and matrix m1. |
void |
GMatrix.add(GMatrix m1,
GMatrix m2)
Sets the value of this matrix to the matrix sum of matrices m1 and m2. |
void |
GMatrix.copySubMatrix(int rowSource,
int colSource,
int numRow,
int numCol,
int rowDest,
int colDest,
GMatrix target)
Copies a sub-matrix derived from this matrix into the target matrix. |
boolean |
GMatrix.epsilonEquals(GMatrix m1,
double epsilon)
Returns true if the L-infinite distance between this matrix and matrix m1 is less than or equal to the epsilon parameter, otherwise returns false. |
boolean |
GMatrix.epsilonEquals(GMatrix m1,
float epsilon)
Deprecated. Use epsilonEquals(GMatrix, double) instead |
boolean |
GMatrix.equals(GMatrix m1)
Returns true if all of the data members of GMatrix m1 are equal to the corresponding data members in this GMatrix. |
void |
GMatrix.get(GMatrix m1)
Places the values in the this GMatrix into the matrix m1; m1 should be at least as large as this GMatrix. |
void |
GMatrix.invert(GMatrix m1)
Inverts matrix m1 and places the new values into this matrix. |
int |
GMatrix.LUD(GMatrix LU,
GVector permutation)
LU Decomposition: this matrix must be a square matrix and the LU GMatrix parameter must be the same size as this matrix. |
void |
GVector.LUDBackSolve(GMatrix LU,
GVector b,
GVector permutation)
LU Decomposition Back Solve; this method takes the LU matrix and the permutation vector produced by the GMatrix method LUD and solves the equation (LU)*x = b by placing the solution vector x into this vector. |
void |
GMatrix.mul(GMatrix m1)
Sets the value of this matrix to the result of multiplying itself with matrix m1 (this = this * m1). |
void |
GMatrix.mul(GMatrix m1,
GMatrix m2)
Sets the value of this matrix to the result of multiplying the two argument matrices together (this = m1 * m2). |
void |
GVector.mul(GMatrix m1,
GVector v1)
Multiplies matrix m1 times Vector v1 and places the result into this vector (this = m1*v1). |
void |
GVector.mul(GVector v1,
GMatrix m1)
Multiplies the transpose of vector v1 (ie, v1 becomes a row vector with respect to the multiplication) times matrix m1 and places the result into this vector (this = transpose(v1)*m1). |
void |
GMatrix.mulTransposeBoth(GMatrix m1,
GMatrix m2)
Multiplies the transpose of matrix m1 times the transpose of matrix m2, and places the result into this. |
void |
GMatrix.mulTransposeLeft(GMatrix m1,
GMatrix m2)
Multiplies the transpose of matrix m1 times matrix m2, and places the result into this. |
void |
GMatrix.mulTransposeRight(GMatrix m1,
GMatrix m2)
Multiplies matrix m1 times the transpose of matrix m2, and places the result into this. |
void |
GMatrix.negate(GMatrix m1)
Sets the value of this matrix equal to the negation of of the GMatrix parameter. |
void |
GMatrix.set(GMatrix m1)
Sets the value of this matrix to the values found in matrix m1. |
void |
GMatrix.sub(GMatrix m1)
Sets the value of this matrix to the matrix difference of itself and matrix m1 (this = this - m1). |
void |
GMatrix.sub(GMatrix m1,
GMatrix m2)
Sets the value of this matrix to the matrix difference of matrices m1 and m2 (this = m1 - m2). |
int |
GMatrix.SVD(GMatrix U,
GMatrix W,
GMatrix V)
Finds the singular value decomposition (SVD) of this matrix such that this = U*W*transpose(V); and returns the rank of this matrix; the values of U,W,V are all overwritten. |
void |
GVector.SVDBackSolve(GMatrix U,
GMatrix W,
GMatrix V,
GVector b)
Solves for x in Ax = b, where x is this vector (nx1), A is mxn, b is mx1, and A = U*W*transpose(V); U,W,V must be precomputed and can be found by taking the singular value decomposition (SVD) of A using the method SVD found in the GMatrix class. |
void |
GMatrix.transpose(GMatrix m1)
Places the matrix values of the transpose of matrix m1 into this matrix. |
Constructors in javax.vecmath with parameters of type GMatrix | |
---|---|
GMatrix(GMatrix matrix)
Constructs a new GMatrix and copies the initial values from the parameter matrix. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |