Example usage for Java weka.core.matrix Matrix fields, constructors, methods, implement or subclass
The text is from its open source code.
Matrix(int m, int n) Construct an m-by-n matrix of zeros. | |
Matrix(double vals[], int m) Construct a matrix from a one-dimensional packed array | |
Matrix(double[][] A) Construct a matrix from a 2-D array. | |
Matrix(Reader r) Reads a matrix from a reader. | |
Matrix(int m, int n, double s) Construct an m-by-n constant matrix. | |
Matrix(double[][] A, int m, int n) Construct a matrix quickly without checking arguments. |
double | det() Matrix determinant |
EigenvalueDecomposition | eig() Eigenvalue Decomposition |
double | get(int i, int j) Get a single element. |
double[][] | getArray() Access the internal two-dimensional array. |
int | getColumnDimension() Get column dimension. |
double[] | getColumnPackedCopy() Make a one-dimensional column packed copy of the internal array. |
Matrix | getMatrix(int i0, int i1, int j0, int j1) Get a submatrix. |
int | getRowDimension() Get row dimension. |
double[] | getRowPackedCopy() Make a one-dimensional row packed copy of the internal array. |
Matrix | identity(int m, int n) Generate identity matrix |
Matrix | inverse() Matrix inverse or pseudoinverse |
Matrix | minus(Matrix B) C = A - B |
Matrix | plus(Matrix B) C = A + B |
Matrix | plusEquals(Matrix B) A = A + B |
Matrix | random(int m, int n) Generate matrix with random elements |
LinearRegression | regression(Matrix y, double ridge) Performs a (ridged) linear regression. |
void | set(int i, int j, double s) Set a single element. |
void | setMatrix(int i0, int i1, int j0, int j1, Matrix X) Set a submatrix. |
Matrix | solve(Matrix B) Solve A*X = B |
Matrix | times(double s) Multiply a matrix by a scalar, C = s*A |
Matrix | times(Matrix B) Linear algebraic matrix multiplication, A * B |
Matrix | timesEquals(double s) Multiply a matrix by a scalar in place, A = s*A |
Matrix | transpose() Matrix transpose. |
void | write(Writer w) Writes out a matrix. |