Uses of Class
io.bhagat.math.linearalgebra.Matrix
-
Packages that use Matrix Package Description io.bhagat.ai.supervised A package that holds AI algorithms that fall under supervised learningio.bhagat.ai.unsupervised A package that holds AI algorithms that fall under unsupervised learningio.bhagat.math.linearalgebra A package for storing linear algebra -
-
Uses of Matrix in io.bhagat.ai.supervised
Fields in io.bhagat.ai.supervised declared as Matrix Modifier and Type Field Description private Matrix[]NeuralNetwork. biasthe bias for each layerprivate Matrix[]NeuralNetwork. weightsthe weights for each layerMethods in io.bhagat.ai.supervised that return Matrix Modifier and Type Method Description MatrixNeuralNetwork. feedForward(Matrix inputs)the feed forward algorithm for making a guess based on the inputsMatrix[]NeuralNetwork. getBias()Matrix[]NeuralNetwork. getWeights()Methods in io.bhagat.ai.supervised with parameters of type Matrix Modifier and Type Method Description MatrixNeuralNetwork. feedForward(Matrix inputs)the feed forward algorithm for making a guess based on the inputsvoidNeuralNetwork. setBias(Matrix[] bias)voidNeuralNetwork. setWeights(Matrix[] weights)voidNeuralNetwork. train(Matrix inputs, Matrix targets)trains the network based on certain inputs and the known targets for those inputs -
Uses of Matrix in io.bhagat.ai.unsupervised
Fields in io.bhagat.ai.unsupervised declared as Matrix Modifier and Type Field Description private MatrixPrincipalComponentAnalysis. CMatrixPrincipalComponentAnalysis. dataprivate MatrixPrincipalComponentAnalysis. XMethods in io.bhagat.ai.unsupervised that return Matrix Modifier and Type Method Description static MatrixPrincipalComponentAnalysis. centerData(Matrix X)Centers the data from the matrix X at the column meanstatic MatrixPrincipalComponentAnalysis. covarianceMatrix(Matrix X)creates the covariance matrix for the datastatic MatrixPrincipalComponentAnalysis. createMatrix(byte[] data)creates a matrix from a byte arrayMatrixPrincipalComponentAnalysis. dimensionReduction()Reduces the dimensions of the data matrix so only the important dimensions remainMatrixPrincipalComponentAnalysis. dimensionReduction(double threshold)Reduces the dimensions of the data matrix so only the important dimensions remainMatrixPrincipalComponentAnalysis. dimensionReduction(int D)Reduces the dimensions of the data matrix into D dimensionsMatrixPrincipalComponentAnalysis. dimensionReduction(Matrix X)Reduces the dimensions of the data matrix so only the important dimensions remainMatrixPrincipalComponentAnalysis. dimensionReduction(Matrix X, double threshhold)Reduces the dimensions of the data matrix so only the important dimensions remainMatrixPrincipalComponentAnalysis. dimensionReduction(Matrix X, int D)Reduces the dimensions of the data matrix into D dimensionsMatrixPrincipalComponentAnalysis. dimensionReduction(Vector x)Reduces the dimensions of the data point into D dimensionsMatrixPrincipalComponentAnalysis. dimensionReduction(Vector x, double threshold)Reduces the dimensions of the data point into D dimensionsMatrixPrincipalComponentAnalysis. dimensionReduction(Vector x, int D)Reduces the dimensions of the data point into D dimensionsMatrixPrincipalComponentAnalysis. getCenteredData()Methods in io.bhagat.ai.unsupervised with parameters of type Matrix Modifier and Type Method Description static MatrixPrincipalComponentAnalysis. centerData(Matrix X)Centers the data from the matrix X at the column meanstatic MatrixPrincipalComponentAnalysis. covarianceMatrix(Matrix X)creates the covariance matrix for the dataMatrixPrincipalComponentAnalysis. dimensionReduction(Matrix X)Reduces the dimensions of the data matrix so only the important dimensions remainMatrixPrincipalComponentAnalysis. dimensionReduction(Matrix X, double threshhold)Reduces the dimensions of the data matrix so only the important dimensions remainMatrixPrincipalComponentAnalysis. dimensionReduction(Matrix X, int D)Reduces the dimensions of the data matrix into D dimensionsvoidPrincipalComponentAnalysis. setDataMatrix(Matrix X)sets the data of the objectvoidKMeans. train(Matrix inputs)trains the model to find the clustersConstructors in io.bhagat.ai.unsupervised with parameters of type Matrix Constructor Description PrincipalComponentAnalysis(Matrix X)Creates an object that will perform principal component analysis -
Uses of Matrix in io.bhagat.math.linearalgebra
Fields in io.bhagat.math.linearalgebra declared as Matrix Modifier and Type Field Description private MatrixVector.CrossProductMatrix. internalMatrixprivate MatrixMatrix.MatrixIndex. parentparent matrixMethods in io.bhagat.math.linearalgebra that return Matrix Modifier and Type Method Description MatrixMatrix. add(Matrix m)performs element wise additionMatrixMatrix. clone()Clones this matrix with a new memory allocationMatrixMatrix. cofactor()Finds the cofactor of the matrixstatic MatrixMatrix. cofactor(Matrix A)finds the cofactor of a matrixMatrixMatrix. divide(double d)performs the scalar division on the matrixMatrixMatrix. divide(Matrix m)performs element wise divisionMatrixMatrix.MatrixIndex. getParent()MatrixMatrix. hadamardProduct(Matrix m)performs the hadamard product which is element wise multiplicationstatic MatrixMatrix. hadamardProduct(Matrix a, Matrix b)Computes the hadamard product, which is element wise multiplicationstatic MatrixMatrix. identityMatrix(int size)generates an identity matrix with a specified sizestatic MatrixMatrix. inner(Matrix a, Matrix b)performs the inner product on two matricesMatrixMatrix. inverse()Finds the inverse of the matrixstatic MatrixMatrix. inverse(Matrix A)computes the inverse matrix of the input matrixMatrixMatrix. map(Function<java.lang.Double,java.lang.Double> function)maps a function onto each element in the matrixMatrixMatrix. mapWithIndex(Function<Matrix.MatrixIndex,java.lang.Double> function)maps a function onto each element in the matrixMatrixMatrix. multiply(double d)performs the scalar multiplication on the matrixMatrixMatrix. multiply(Matrix m)performs matrix multiplicationstatic MatrixMatrix. multiply(Matrix a, Matrix b)Performs Matrix multiplicationstatic MatrixMatrix. multiply(Matrix A, Vector x)Performs Matrix multiplication with a matrix and a vectorMatrixMatrix. multiply(Vector v)performs matrix multiplicationstatic MatrixMatrix. outer(Matrix a, Matrix b)performs the outer product on two matricesstatic MatrixVector. outer(Vector a, Vector b)performs the outer product on two vectorsstatic Matrix[]Matrix. QR(Matrix A)Computes the QR factorization of a matrixMatrixMatrix. reducedRowEchelonForm()converts the matrix to reduced row echelon formMatrixMatrix. removeColumn(int index)Removes a columns in the MatrixMatrixMatrix. removeRow(int index)Removes a row in the MatrixMatrixMatrix. rowEchelonForm()converts the matrix to row echelon formMatrixMatrix. setColumn(Matrix m, int j)sets the column of the matrix to the values from the input matrixMatrixMatrix. setColumn(Vector v, int j)sets the column of the matrix to the values from the vectorMatrixMatrix. setColumns(Matrix[] ms)sets all the columns from an array of matricesMatrixMatrix. setColumns(Vector[] vs)sets all the columns from an array of vectorsMatrixMatrix. setRow(Matrix m, int i)sets the row of the matrix to the values from the input matrixMatrixMatrix. setRow(Vector v, int i)sets the row of the matrix to the values from the vectorMatrixMatrix. setRows(Matrix[] ms)sets all the rows from an array of matricesMatrixMatrix. setRows(Vector[] vs)sets all the rows from an array of vectorsstatic Matrix[]Matrix. singularValueDecomposition(Matrix A, int iterations)Performs singular value decomposition on a matrixMatrixMatrix. subtract(Matrix m)performs element wise subtractionMatrixVector. toMatrix()converts the vector into a matrix columnMatrixVector. toMatrixColumn()converts the vector into a matrix columnMatrixVector. toMatrixRow()converts the vector into a matrix rowMatrixMatrix. transpose()Transposes the matrixstatic MatrixMatrix. transpose(Matrix m)transposes the rows and columns of a matrix to the columns and rowsMethods in io.bhagat.math.linearalgebra with parameters of type Matrix Modifier and Type Method Description MatrixMatrix. add(Matrix m)performs element wise additionstatic MatrixMatrix. cofactor(Matrix A)finds the cofactor of a matrixintMatrix. compareTo(Matrix m)compares two matrices by determinantstatic java.util.HashMap<java.lang.String,java.lang.Double>LinearEquationSolver. cramarsRule(Matrix A, Vector b, java.util.ArrayList<java.lang.String> variables)computes the solutions of the matrix equation Ax=b using cramar's rulestatic doubleMatrix. determinant(Matrix m)MatrixMatrix. divide(Matrix m)performs element wise divisionbooleanMatrix. equals(Matrix m)checks if two matrices have the same datastatic java.util.HashMap<java.lang.String,java.lang.Double>LinearEquationSolver. gaussMethod(Matrix A, Vector b, java.util.ArrayList<java.lang.String> variables)computes the solutions of the matrix equation Ax=b using the guassian methodMatrixMatrix. hadamardProduct(Matrix m)performs the hadamard product which is element wise multiplicationstatic MatrixMatrix. hadamardProduct(Matrix a, Matrix b)Computes the hadamard product, which is element wise multiplicationstatic MatrixMatrix. inner(Matrix a, Matrix b)performs the inner product on two matricesstatic MatrixMatrix. inverse(Matrix A)computes the inverse matrix of the input matrixstatic java.util.HashMap<java.lang.String,java.lang.Double>LinearEquationSolver. inverseA(Matrix A, Vector b, java.util.ArrayList<java.lang.String> variables)computes the solutions of the matrix equation Ax=b using the inverse of AMatrixMatrix. multiply(Matrix m)performs matrix multiplicationstatic MatrixMatrix. multiply(Matrix a, Matrix b)Performs Matrix multiplicationstatic MatrixMatrix. multiply(Matrix A, Vector x)Performs Matrix multiplication with a matrix and a vectorstatic MatrixMatrix. outer(Matrix a, Matrix b)performs the outer product on two matricesstatic Matrix[]Matrix. QR(Matrix A)Computes the QR factorization of a matrixMatrixMatrix. setColumn(Matrix m, int j)sets the column of the matrix to the values from the input matrixMatrixMatrix. setColumns(Matrix[] ms)sets all the columns from an array of matricesvoidMatrix.MatrixIndex. setParent(Matrix parent)MatrixMatrix. setRow(Matrix m, int i)sets the row of the matrix to the values from the input matrixMatrixMatrix. setRows(Matrix[] ms)sets all the rows from an array of matricesstatic Matrix[]Matrix. singularValueDecomposition(Matrix A, int iterations)Performs singular value decomposition on a matrixstatic Matrix.OuterProductSVDMatrix. singularValueDecompositionOuter(Matrix A, int iterations)performs singular value decomposition and returns the output in outer product formMatrixMatrix. subtract(Matrix m)performs element wise subtractionstatic MatrixMatrix. transpose(Matrix m)transposes the rows and columns of a matrix to the columns and rowsConstructors in io.bhagat.math.linearalgebra with parameters of type Matrix Constructor Description MatrixIndex(int i, int j, double value, Matrix parent)constructs a new MatrixIndex
-