PaceMatrix (original) (raw)
Modifier and Type
Method and Description
void
[backward](../../../../weka/classifiers/functions/pace/PaceMatrix.html#backward-weka.classifiers.functions.pace.PaceMatrix-weka.core.matrix.IntVector-int-int-)([PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") b,[IntVector](../../../../weka/core/matrix/IntVector.html "class in weka.core.matrix") pvt, int ks, int k0)
Backward ordering of columns in terms of response explanation.
[PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace")
[cbind](../../../../weka/classifiers/functions/pace/PaceMatrix.html#cbind-weka.classifiers.functions.pace.PaceMatrix-)([PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") b)
Returns a new matrix which binds two matrices with columns.
java.lang.Object
[clone](../../../../weka/classifiers/functions/pace/PaceMatrix.html#clone--)()
Clone the PaceMatrix object.
double
[columnResponseExplanation](../../../../weka/classifiers/functions/pace/PaceMatrix.html#columnResponseExplanation-weka.classifiers.functions.pace.PaceMatrix-weka.core.matrix.IntVector-int-int-)([PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") b,[IntVector](../../../../weka/core/matrix/IntVector.html "class in weka.core.matrix") pvt, int j, int ks)
Returns the squared ks-th response value if the j-th column becomes the ks-th after orthogonal transformation.
void
[forward](../../../../weka/classifiers/functions/pace/PaceMatrix.html#forward-weka.classifiers.functions.pace.PaceMatrix-weka.core.matrix.IntVector-int-)([PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") b,[IntVector](../../../../weka/core/matrix/IntVector.html "class in weka.core.matrix") pvt, int k0)
Forward ordering of columns in terms of response explanation.
double[]
[g1](../../../../weka/classifiers/functions/pace/PaceMatrix.html#g1-double-double-)(double a, double b)
Constructs the Givens rotation
void
[g2](../../../../weka/classifiers/functions/pace/PaceMatrix.html#g2-double:A-int-int-int-)(double[] cs, int i0, int i1, int j)
Performs the Givens rotation
[DoubleVector](../../../../weka/core/matrix/DoubleVector.html "class in weka.core.matrix")
[getColumn](../../../../weka/classifiers/functions/pace/PaceMatrix.html#getColumn-int-)(int j)
Return a DoubleVector that stores a column of the matrix
[DoubleVector](../../../../weka/core/matrix/DoubleVector.html "class in weka.core.matrix")
[getColumn](../../../../weka/classifiers/functions/pace/PaceMatrix.html#getColumn-int-int-int-)(int i0, int i1, int j)
Return a DoubleVector that stores some elements of a column of the matrix
java.lang.String
[getRevision](../../../../weka/classifiers/functions/pace/PaceMatrix.html#getRevision--)()
Returns the revision string.
double[]
[h1](../../../../weka/classifiers/functions/pace/PaceMatrix.html#h1-int-int-)(int j, int k)
Constructs single Householder transformation for a column
void
[h2](../../../../weka/classifiers/functions/pace/PaceMatrix.html#h2-int-int-double-weka.classifiers.functions.pace.PaceMatrix-int-)(int j, int k, double q,[PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") b, int l)
Performs single Householder transformation on one column of a matrix
boolean
[isEmpty](../../../../weka/classifiers/functions/pace/PaceMatrix.html#isEmpty--)()
Check if the matrix is empty
int
[leastExplainingColumn](../../../../weka/classifiers/functions/pace/PaceMatrix.html#leastExplainingColumn-weka.classifiers.functions.pace.PaceMatrix-weka.core.matrix.IntVector-int-int-)([PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") b,[IntVector](../../../../weka/core/matrix/IntVector.html "class in weka.core.matrix") pvt, int ks, int k0)
Returns the index of the column that has the smallest (squared) response, when the column is moved to become the (ks-1)-th column.
void
[lsqr](../../../../weka/classifiers/functions/pace/PaceMatrix.html#lsqr-weka.classifiers.functions.pace.PaceMatrix-weka.core.matrix.IntVector-int-)([PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") b,[IntVector](../../../../weka/core/matrix/IntVector.html "class in weka.core.matrix") pvt, int k0)
QR transformation for a least squares problem
A x = b
implicitly both A and b are transformed.
void
[lsqrSelection](../../../../weka/classifiers/functions/pace/PaceMatrix.html#lsqrSelection-weka.classifiers.functions.pace.PaceMatrix-weka.core.matrix.IntVector-int-)([PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") b,[IntVector](../../../../weka/core/matrix/IntVector.html "class in weka.core.matrix") pvt, int k0)
QR transformation for a least squares problem
A x = b
implicitly both A and b are transformed.
static void
[main](../../../../weka/classifiers/functions/pace/PaceMatrix.html#main-java.lang.String:A-)(java.lang.String[] args)
for testing only
double
[maxAbs](../../../../weka/classifiers/functions/pace/PaceMatrix.html#maxAbs--)()
Returns the maximum absolute value of all elements
double
[maxAbs](../../../../weka/classifiers/functions/pace/PaceMatrix.html#maxAbs-int-int-int-)(int i0, int i1, int j)
Returns the maximum absolute value of some elements of a column, that is, the elements of A[i0:i1][j].
double
[minAbs](../../../../weka/classifiers/functions/pace/PaceMatrix.html#minAbs-int-int-int-)(int i0, int i1, int column)
Returns the minimum absolute value of some elements of a column, that is, the elements of A[i0:i1][j].
int
[mostExplainingColumn](../../../../weka/classifiers/functions/pace/PaceMatrix.html#mostExplainingColumn-weka.classifiers.functions.pace.PaceMatrix-weka.core.matrix.IntVector-int-)([PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") b,[IntVector](../../../../weka/core/matrix/IntVector.html "class in weka.core.matrix") pvt, int ks)
Returns the index of the column that has the largest (squared) response, when each of columns pvt[ks:] is moved to become the ks-th column.
[DoubleVector](../../../../weka/core/matrix/DoubleVector.html "class in weka.core.matrix")
[nnls](../../../../weka/classifiers/functions/pace/PaceMatrix.html#nnls-weka.classifiers.functions.pace.PaceMatrix-weka.core.matrix.IntVector-)([PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") b,[IntVector](../../../../weka/core/matrix/IntVector.html "class in weka.core.matrix") pvt)
Solves the nonnegative linear squares problem.
[DoubleVector](../../../../weka/core/matrix/DoubleVector.html "class in weka.core.matrix")
[nnlse](../../../../weka/classifiers/functions/pace/PaceMatrix.html#nnlse-weka.classifiers.functions.pace.PaceMatrix-weka.classifiers.functions.pace.PaceMatrix-weka.classifiers.functions.pace.PaceMatrix-weka.core.matrix.IntVector-)([PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") b,[PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") c,[PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") d,[IntVector](../../../../weka/core/matrix/IntVector.html "class in weka.core.matrix") pvt)
Solves the nonnegative least squares problem with equality constraint.
[DoubleVector](../../../../weka/core/matrix/DoubleVector.html "class in weka.core.matrix")
[nnlse1](../../../../weka/classifiers/functions/pace/PaceMatrix.html#nnlse1-weka.classifiers.functions.pace.PaceMatrix-weka.core.matrix.IntVector-)([PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") b,[IntVector](../../../../weka/core/matrix/IntVector.html "class in weka.core.matrix") pvt)
Solves the nonnegative least squares problem with equality constraint.
void
[positiveDiagonal](../../../../weka/classifiers/functions/pace/PaceMatrix.html#positiveDiagonal-weka.classifiers.functions.pace.PaceMatrix-weka.core.matrix.IntVector-)([PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") Y,[IntVector](../../../../weka/core/matrix/IntVector.html "class in weka.core.matrix") pvt)
Sets all diagonal elements to be positive (or nonnegative) without changing the least squares solution
static [Matrix](../../../../weka/core/matrix/Matrix.html "class in weka.core.matrix")
[randomNormal](../../../../weka/classifiers/functions/pace/PaceMatrix.html#randomNormal-int-int-)(int m, int n)
Generate matrix with standard-normally distributed random elements
[PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace")
[rbind](../../../../weka/classifiers/functions/pace/PaceMatrix.html#rbind-weka.classifiers.functions.pace.PaceMatrix-)([PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") b)
Returns a new matrix which binds two matrices together with rows.
void
[rsolve](../../../../weka/classifiers/functions/pace/PaceMatrix.html#rsolve-weka.classifiers.functions.pace.PaceMatrix-weka.core.matrix.IntVector-int-)([PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") b,[IntVector](../../../../weka/core/matrix/IntVector.html "class in weka.core.matrix") pvt, int kp)
Solves upper-triangular equation
R x = b
On output, the solution is stored in b
void
[setColumnDimension](../../../../weka/classifiers/functions/pace/PaceMatrix.html#setColumnDimension-int-)(int columnDimension)
Set the column dimenion of the matrix
void
[setMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html#setMatrix-double:A-boolean-)(double[] v, boolean columnFirst)
Set the whole matrix from a 1-D array
void
[setMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html#setMatrix-int-int-int-weka.core.matrix.DoubleVector-)(int i0, int i1, int j,[DoubleVector](../../../../weka/core/matrix/DoubleVector.html "class in weka.core.matrix") v)
Set the submatrix A[i0:i1][j] with the values stored in a DoubleVector
void
[setMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html#setMatrix-int-int-int-int-double-)(int i0, int i1, int j0, int j1, double s)
Set the submatrix A[i0:i1][j0:j1] with a same value
void
[setPlus](../../../../weka/classifiers/functions/pace/PaceMatrix.html#setPlus-int-int-double-)(int i, int j, double s)
Add a value to an element and reset the element
void
[setRowDimension](../../../../weka/classifiers/functions/pace/PaceMatrix.html#setRowDimension-int-)(int rowDimension)
Set the row dimenion of the matrix
void
[setTimes](../../../../weka/classifiers/functions/pace/PaceMatrix.html#setTimes-int-int-double-)(int i, int j, double s)
Multiply a value with an element and reset the element
void
[steplsqr](../../../../weka/classifiers/functions/pace/PaceMatrix.html#steplsqr-weka.classifiers.functions.pace.PaceMatrix-weka.core.matrix.IntVector-int-int-boolean-)([PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") b,[IntVector](../../../../weka/core/matrix/IntVector.html "class in weka.core.matrix") pvt, int ks, int j, boolean adjoin)
Stepwise least squares QR-decomposition of the problem A x = b
double[]
[sum2](../../../../weka/classifiers/functions/pace/PaceMatrix.html#sum2-boolean-)(boolean col)
Squared sum of columns or rows of a matrix
double
[sum2](../../../../weka/classifiers/functions/pace/PaceMatrix.html#sum2-int-int-int-boolean-)(int j, int i0, int i1, boolean col)
Squared sum of a column or row in a matrix
double
[times](../../../../weka/classifiers/functions/pace/PaceMatrix.html#times-int-int-int-weka.classifiers.functions.pace.PaceMatrix-int-)(int i, int j0, int j1,[PaceMatrix](../../../../weka/classifiers/functions/pace/PaceMatrix.html "class in weka.classifiers.functions.pace") B, int l)
Multiplication between a row (or part of a row) of the first matrix and a column (or part or a column) of the second matrix.
java.lang.String
[toString](../../../../weka/classifiers/functions/pace/PaceMatrix.html#toString--)()
Converts matrix to string
java.lang.String
[toString](../../../../weka/classifiers/functions/pace/PaceMatrix.html#toString-int-boolean-)(int digits, boolean trailing)
Converts matrix to string