Uses of Class
io.bhagat.math.linearalgebra.Vector
-
Packages that use Vector 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 algebraio.bhagat.math.statistics A package for storing statistics related math -
-
Uses of Vector in io.bhagat.ai.supervised
Fields in io.bhagat.ai.supervised declared as Vector Modifier and Type Field Description private VectorPerceptron. weightsA vector that holds the weights for the inputs (for the weighted sum)Methods in io.bhagat.ai.supervised that return Vector Modifier and Type Method Description VectorNeuralNetwork. feedForward(Vector inputs)the feed forward algorithm for making a guess based on the inputsVectorPerceptron. getWeights()Methods in io.bhagat.ai.supervised with parameters of type Vector Modifier and Type Method Description VectorNeuralNetwork. feedForward(Vector inputs)the feed forward algorithm for making a guess based on the inputsintPerceptron. guess(Vector inputs)takes a Vector for inputs and then guesses the outputvoidNeuralNetwork. train(Vector inputs, Vector targets)trains the network based on certain inputs and the known targets for those inputsvoidPerceptron. train(Vector inputs, int target)takes in a Vector for the inputs and then compares the guess and the target output and adjusts the weights and bias accordingly -
Uses of Vector in io.bhagat.ai.unsupervised
Fields in io.bhagat.ai.unsupervised declared as Vector Modifier and Type Field Description private Vector[]KMeans. clustersprivate Vector[]PrincipalComponentAnalysis. eigenvectorsMethods in io.bhagat.ai.unsupervised that return Vector Modifier and Type Method Description VectorKMeans. predict(Vector input)predicts which cluster the input belongs toMethods in io.bhagat.ai.unsupervised with parameters of type Vector Modifier and Type Method Description MatrixPrincipalComponentAnalysis. 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 dimensionsVectorKMeans. predict(Vector input)predicts which cluster the input belongs tovoidKMeans. train(Vector[] inputs)trains the model to find the clusters -
Uses of Vector in io.bhagat.math.linearalgebra
Fields in io.bhagat.math.linearalgebra declared as Vector Modifier and Type Field Description Vector[]Matrix.EigenSolution. eigenvectorsVector[]Matrix.SingularSolution. eigenvectorsprivate VectorVector.VectorIndex. parentthe parent vectorprivate Vector[]Vector.CrossProductMatrix. topRowVector[]Matrix.OuterProductSVD. usVector[]Matrix.OuterProductSVD. vsMethods in io.bhagat.math.linearalgebra that return Vector Modifier and Type Method Description VectorVector. add(double x)adds a scalar to each value in the VectorVectorVector. add(Vector v)Performs element wise additionVectorVectorSpace.VectorSpacable. asLinearCombination(S... set)VectorVector. clone()static VectorVector. clone(Vector v)static clone function that calls the clone function of a vectorVectorVectorSpace. coordinateVector(E obj)static VectorVector. cross(Vector... vectors)computes the cross product of the input vectorsprivate VectorVector.CrossProductMatrix. determinant()VectorVector. divide(double scalar)Performs scalar division (element wise) on the Vectorstatic VectorVector. divide(double scalar, Vector a)static divide scalar functionVectorVector. divide(Vector vector)Element-wise Vector divisionstatic VectorVector. divide(Vector a, double scalar)static divide scalar functionprivate VectorMatrix. eigenvector(double eigenvalue)Vector[]Matrix. eigenvectors(double[] eigenvalues)calculates the eigenvectors based on the eigenvalues providedstatic VectorVector. generateUnitVector(int index, int size)creates a unit vectorVectorVector.VectorIndex. getParent()Vector[]Matrix. getVectorColumns()Vector[]Matrix. getVectorRows()VectorLinearEquation. getWeights()gets all the weights that the variables are multiplied with in each termVectorVector. map(Function<java.lang.Double,java.lang.Double> function)maps a function onto each element in the vectorVectorVector. mapWithIndex(Function<Vector.VectorIndex,java.lang.Double> function)maps a function onto each element in the vectorVectorVector. multiply(double scalar)Performs scalar multiplication (element wise) on the Vectorstatic VectorVector. multiply(double scalar, Vector a)static multiply scalar functionVectorVector. multiply(Vector v)element wise multiplicationstatic VectorVector. multiply(Vector a, double scalar)static multiply scalar functionVectorVector. normalize()static Vector[]Vector. orthogonalize(Vector[] x)make the input vectors orthogonalVectorVector. subtract(double x)subtracts a scalar to each value in the VectorVectorVector. subtract(Vector v)Performs element wise subtractionVectorMatrix. toVector()converts this matrix into a vectorMethods in io.bhagat.math.linearalgebra with parameters of type Vector Modifier and Type Method Description VectorVector. add(Vector v)Performs element wise additionstatic VectorVector. clone(Vector v)static clone function that calls the clone function of a vectorintVector. compareTo(Vector v)compares two vectors 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 VectorVector. cross(Vector... vectors)computes the cross product of the input vectorsstatic VectorVector. divide(double scalar, Vector a)static divide scalar functionVectorVector. divide(Vector vector)Element-wise Vector divisionstatic VectorVector. divide(Vector a, double scalar)static divide scalar functiondoubleVector. dot(Vector vector)performs the dot product with another vectorstatic doubleVector. dot(Vector a, Vector b)static dot product function that calls the dot function of a vectorbooleanVector. equals(Vector v)checks if two matrices have the same dataEVectorSpace. fromCoordinateVector(Vector v)static 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 methodstatic doubleVector. inner(Vector a, Vector b)performs the inner product on two vectorsstatic 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 Astatic MatrixMatrix. multiply(Matrix A, Vector x)Performs Matrix multiplication with a matrix and a vectorMatrixMatrix. multiply(Vector v)performs matrix multiplicationstatic VectorVector. multiply(double scalar, Vector a)static multiply scalar functionVectorVector. multiply(Vector v)element wise multiplicationstatic VectorVector. multiply(Vector a, double scalar)static multiply scalar functionbooleanVector. orthogonal(Vector v)Checks if this vector and the one sent in are orthogonalstatic booleanVector. orthogonal(Vector v1, Vector v2)Checks if two vectors are orthogonalstatic Vector[]Vector. orthogonalize(Vector[] x)make the input vectors orthogonalstatic MatrixVector. outer(Vector a, Vector b)performs the outer product on two vectorsstatic voidVector. print(Vector... vectors)prints any number of vectorsMatrixMatrix. setColumn(Vector v, int j)sets the column of the matrix to the values from the vectorMatrixMatrix. setColumns(Vector[] vs)sets all the columns from an array of vectorsvoidVector.VectorIndex. setParent(Vector parent)MatrixMatrix. setRow(Vector v, int i)sets the row of the matrix to the values from the vectorMatrixMatrix. setRows(Vector[] vs)sets all the rows from an array of vectorsVectorVector. subtract(Vector v)Performs element wise subtractionConstructors in io.bhagat.math.linearalgebra with parameters of type Vector Constructor Description EigenSolution(double[] eigenvalues, Vector[] eigenvectors)Creates a new EigenSolutionInvalidLengthException(Vector vector1, Vector vector2)OuterProductSVD(double[] singularValues, Vector[] us, Vector[] vs)creates a new SVD solutionOutOfDimensionsException(Vector v, int index)SingularSolution(double[] singularValues, Vector[] eigenvectors)Creates a new SingularSolutionVectorIndex(int index, double value, Vector parent)Creates a new Vector IndexVectorIndex(int index, Vector parent)Creates a new Vector Index -
Uses of Vector in io.bhagat.math.statistics
Methods in io.bhagat.math.statistics that return Vector Modifier and Type Method Description VectorQuantitativeDataList. toVector()creates a Vector from the data in this list
-