Uses of Class
weka.core.matrix.Matrix
-
Packages that use Matrix Package Description weka.classifiers.evaluation weka.core weka.core.matrix weka.estimators -
-
Uses of Matrix in weka.classifiers.evaluation
Subclasses of Matrix in weka.classifiers.evaluation Modifier and Type Class Description classConfusionMatrixCells of this matrix correspond to counts of the number (or weight) of predictions for each actual value / predicted value combination. -
Uses of Matrix in weka.core
Methods in weka.core with parameters of type Matrix Modifier and Type Method Description static double[]Optimization. solveTriangle(Matrix t, double[] b, boolean isLower, boolean[] isZero)Solve the linear equation of TX=B where T is a triangle matrix It can be solved using back/forward substitution, with O(N^2) complexity -
Uses of Matrix in weka.core.matrix
Methods in weka.core.matrix that return Matrix Modifier and Type Method Description MatrixMatrix. arrayLeftDivide(Matrix B)Element-by-element left division, C = A.\BMatrixMatrix. arrayLeftDivideEquals(Matrix B)Element-by-element left division in place, A = A.\BMatrixMatrix. arrayRightDivide(Matrix B)Element-by-element right division, C = A./BMatrixMatrix. arrayRightDivideEquals(Matrix B)Element-by-element right division in place, A = A./BMatrixMatrix. arrayTimes(Matrix B)Element-by-element multiplication, C = A.*BMatrixMatrix. arrayTimesEquals(Matrix B)Element-by-element multiplication in place, A = A.*Bstatic MatrixMatrix. constructWithCopy(double[][] A)Construct a matrix from a copy of a 2-D array.MatrixMatrix. copy()Make a deep copy of a matrixMatrixEigenvalueDecomposition. getD()Return the block diagonal eigenvalue matrixMatrixQRDecomposition. getH()Return the Householder vectorsMatrixCholeskyDecomposition. getL()Return triangular factor.MatrixLUDecomposition. getL()Return lower triangular factorMatrixMatrix. getMatrix(int[] r, int[] c)Get a submatrix.MatrixMatrix. getMatrix(int[] r, int j0, int j1)Get a submatrix.MatrixMatrix. getMatrix(int i0, int i1, int[] c)Get a submatrix.MatrixMatrix. getMatrix(int i0, int i1, int j0, int j1)Get a submatrix.MatrixQRDecomposition. getQ()Generate and return the (economy-sized) orthogonal factorMatrixQRDecomposition. getR()Return the upper triangular factorMatrixSingularValueDecomposition. getS()Return the diagonal matrix of singular valuesMatrixLUDecomposition. getU()Return upper triangular factorMatrixSingularValueDecomposition. getU()Return the left singular vectorsMatrixEigenvalueDecomposition. getV()Return the eigenvector matrixMatrixSingularValueDecomposition. getV()Return the right singular vectorsstatic MatrixMatrix. identity(int m, int n)Generate identity matrixMatrixMatrix. inverse()Matrix inverse or pseudoinverseMatrixMatrix. minus(Matrix B)C = A - BMatrixMatrix. minusEquals(Matrix B)A = A - Bstatic MatrixMatrix. parseMatlab(String matlab)creates a matrix from the given Matlab string.MatrixMatrix. plus(Matrix B)C = A + BMatrixMatrix. plusEquals(Matrix B)A = A + Bstatic MatrixMatrix. random(int m, int n)Generate matrix with random elementsstatic MatrixMatrix. read(BufferedReader input)Read a matrix from a stream.MatrixCholeskyDecomposition. solve(Matrix B)Solve A*X = BMatrixLUDecomposition. solve(Matrix B)Solve A*X = BMatrixMatrix. solve(Matrix B)Solve A*X = BMatrixQRDecomposition. solve(Matrix B)Least squares solution of A*X = BMatrixMatrix. solveTranspose(Matrix B)Solve X*A = B, which is also A'*X' = B'MatrixMatrix. sqrt()returns the square root of the matrix, i.e., X from the equation X*X = A.
Steps in the Calculation (seesqrtmin Matlab):
perform eigenvalue decomposition
[V,D]=eig(A) take the square root of all elements in D (only the ones with positive sign are considered for further computation)
S=sqrt(D) calculate the root
X=V*S/V, which can be also written as X=(V'\(V*S)')'MatrixMatrix. times(double s)Multiply a matrix by a scalar, C = s*AMatrixMatrix. times(Matrix B)Linear algebraic matrix multiplication, A * BMatrixMatrix. timesEquals(double s)Multiply a matrix by a scalar in place, A = s*AMatrixMatrix. transpose()Matrix transpose.MatrixMatrix. uminus()Unary minusMethods in weka.core.matrix with parameters of type Matrix Modifier and Type Method Description MatrixMatrix. arrayLeftDivide(Matrix B)Element-by-element left division, C = A.\BMatrixMatrix. arrayLeftDivideEquals(Matrix B)Element-by-element left division in place, A = A.\BMatrixMatrix. arrayRightDivide(Matrix B)Element-by-element right division, C = A./BMatrixMatrix. arrayRightDivideEquals(Matrix B)Element-by-element right division in place, A = A./BMatrixMatrix. arrayTimes(Matrix B)Element-by-element multiplication, C = A.*BMatrixMatrix. arrayTimesEquals(Matrix B)Element-by-element multiplication in place, A = A.*BMatrixMatrix. minus(Matrix B)C = A - BMatrixMatrix. minusEquals(Matrix B)A = A - BMatrixMatrix. plus(Matrix B)C = A + BMatrixMatrix. plusEquals(Matrix B)A = A + BLinearRegressionMatrix. regression(Matrix y, double ridge)Performs a (ridged) linear regression.LinearRegressionMatrix. regression(Matrix y, double[] w, double ridge)Performs a weighted (ridged) linear regression.voidMatrix. setMatrix(int[] r, int[] c, Matrix X)Set a submatrix.voidMatrix. setMatrix(int[] r, int j0, int j1, Matrix X)Set a submatrix.voidMatrix. setMatrix(int i0, int i1, int[] c, Matrix X)Set a submatrix.voidMatrix. setMatrix(int i0, int i1, int j0, int j1, Matrix X)Set a submatrix.MatrixCholeskyDecomposition. solve(Matrix B)Solve A*X = BMatrixLUDecomposition. solve(Matrix B)Solve A*X = BMatrixMatrix. solve(Matrix B)Solve A*X = BMatrixQRDecomposition. solve(Matrix B)Least squares solution of A*X = BMatrixMatrix. solveTranspose(Matrix B)Solve X*A = B, which is also A'*X' = B'MatrixMatrix. times(Matrix B)Linear algebraic matrix multiplication, A * BConstructors in weka.core.matrix with parameters of type Matrix Constructor Description CholeskyDecomposition(Matrix Arg)Cholesky algorithm for symmetric and positive definite matrix.EigenvalueDecomposition(Matrix Arg)Check for symmetry, then construct the eigenvalue decompositionLinearRegression(Matrix a, Matrix y, double ridge)Performs a (ridged) linear regression.LinearRegression(Matrix a, Matrix y, double[] w, double ridge)Performs a weighted (ridged) linear regression.LUDecomposition(Matrix A)LU DecompositionQRDecomposition(Matrix A)QR Decomposition, computed by Householder reflections.SingularValueDecomposition(Matrix Arg)Construct the singular value decomposition -
Uses of Matrix in weka.estimators
Constructors in weka.estimators with parameters of type Matrix Constructor Description MahalanobisEstimator(Matrix covariance, double constDelta, double valueMean)Constructor
-