Uses of Interface
org.apache.commons.math.linear.RealVector
Packages that use RealVector
Package
Description
Linear algebra support.
This package provides optimization algorithms for linear constrained problems.
Statistical routines involving multivariate data.
-
Uses of RealVector in org.apache.commons.math.linear
Subinterfaces of RealVector in org.apache.commons.math.linearModifier and TypeInterfaceDescriptioninterfaceMarker interface for RealVectors that require sparse backing storageClasses in org.apache.commons.math.linear that implement RealVectorModifier and TypeClassDescriptionclassThis class provides default basic implementations for many methods in theRealVectorinterface.classThis class implements theRealVectorinterface with a double array.classThis class implements theRealVectorinterface with aOpenIntToDoubleHashMapbacking store.Methods in org.apache.commons.math.linear that return RealVectorModifier and TypeMethodDescriptionAbstractRealVector.add(double[] v) Compute the sum of this vector andv.AbstractRealVector.add(RealVector v) Compute the sum of this vector andv.ArrayRealVector.add(double[] v) Compute the sum of this vector andv.ArrayRealVector.add(RealVector v) Compute the sum of this vector andv.OpenMapRealVector.add(RealVector v) Compute the sum of this vector andv.RealVector.add(double[] v) Compute the sum of this vector andv.RealVector.add(RealVector v) Compute the sum of this vector andv.ArrayRealVector.append(double in) Construct a vector by appending a double to this vector.ArrayRealVector.append(double[] in) Construct a vector by appending a double array to this vector.ArrayRealVector.append(RealVector v) Construct a vector by appending a vector to this vector.RealVector.append(double d) Construct a vector by appending a double to this vector.RealVector.append(double[] a) Construct a vector by appending a double array to this vector.RealVector.append(RealVector v) Construct a vector by appending a vector to this vector.RealVector.copy()Returns a (deep) copy of this vector.static RealVectorMatrixUtils.createRealVector(double[] data) Creates aRealVectorusing the data from the input array.AbstractRealVector.ebeDivide(double[] v) Element-by-element division.ArrayRealVector.ebeDivide(double[] v) Element-by-element division.ArrayRealVector.ebeDivide(RealVector v) Element-by-element division.RealVector.ebeDivide(double[] v) Element-by-element division.RealVector.ebeDivide(RealVector v) Element-by-element division.AbstractRealVector.ebeMultiply(double[] v) Element-by-element multiplication.ArrayRealVector.ebeMultiply(double[] v) Element-by-element multiplication.ArrayRealVector.ebeMultiply(RealVector v) Element-by-element multiplication.RealVector.ebeMultiply(double[] v) Element-by-element multiplication.RealVector.ebeMultiply(RealVector v) Element-by-element multiplication.AbstractRealMatrix.getColumnVector(int column) Returns the entries in column numbercolumnas a vector.BlockRealMatrix.getColumnVector(int column) Returns the entries in column numbercolumnas a vector.RealMatrix.getColumnVector(int column) Returns the entries in column numbercolumnas a vector.EigenDecomposition.getEigenvector(int i) Returns a copy of the ith eigenvector of the original matrix.EigenDecompositionImpl.getEigenvector(int i) Returns a copy of the ith eigenvector of the original matrix.AbstractRealMatrix.getRowVector(int row) Returns the entries in row numberrowas a vector.BlockRealMatrix.getRowVector(int row) Returns the entries in row numberrowas a vector.RealMatrix.getRowVector(int row) Returns the entries in row numberrowas a vector.ArrayRealVector.getSubVector(int index, int n) Get a subvector from consecutive elements.RealVector.getSubVector(int index, int n) Get a subvector from consecutive elements.AbstractRealVector.map(UnivariateRealFunction function) Acts as if implemented as:RealVector.map(UnivariateRealFunction function) Acts as if implemented as:AbstractRealVector.mapAbs()Map theMath.abs(double)function to each entry.RealVector.mapAbs()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapAbsToSelf()Map theMath.abs(double)function to each entry.ArrayRealVector.mapAbsToSelf()Map theMath.abs(double)function to each entry.RealVector.mapAbsToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapAcos()Map theMath.acos(double)function to each entry.RealVector.mapAcos()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapAcosToSelf()Map theMath.acos(double)function to each entry.ArrayRealVector.mapAcosToSelf()Map theMath.acos(double)function to each entry.RealVector.mapAcosToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapAdd(double d) Add a value to each entry.RealVector.mapAdd(double d) Add a value to each entry.AbstractRealVector.mapAddToSelf(double d) Add a value to each entry.ArrayRealVector.mapAddToSelf(double d) Add a value to each entry.RealVector.mapAddToSelf(double d) Add a value to each entry.AbstractRealVector.mapAsin()Map theMath.asin(double)function to each entry.RealVector.mapAsin()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapAsinToSelf()Map theMath.asin(double)function to each entry.ArrayRealVector.mapAsinToSelf()Map theMath.asin(double)function to each entry.RealVector.mapAsinToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapAtan()Map theMath.atan(double)function to each entry.RealVector.mapAtan()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapAtanToSelf()Map theMath.atan(double)function to each entry.ArrayRealVector.mapAtanToSelf()Map theMath.atan(double)function to each entry.RealVector.mapAtanToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapCbrt()Map theMath.cbrt(double)function to each entry.RealVector.mapCbrt()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapCbrtToSelf()Map theMath.cbrt(double)function to each entry.ArrayRealVector.mapCbrtToSelf()Map theMath.cbrt(double)function to each entry.RealVector.mapCbrtToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapCeil()Map theMath.ceil(double)function to each entry.RealVector.mapCeil()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapCeilToSelf()Map theMath.ceil(double)function to each entry.ArrayRealVector.mapCeilToSelf()Map theMath.ceil(double)function to each entry.RealVector.mapCeilToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapCos()Map theMath.cos(double)function to each entry.RealVector.mapCos()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapCosh()Map theMath.cosh(double)function to each entry.RealVector.mapCosh()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapCoshToSelf()Map theMath.cosh(double)function to each entry.ArrayRealVector.mapCoshToSelf()Map theMath.cosh(double)function to each entry.RealVector.mapCoshToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapCosToSelf()Map theMath.cos(double)function to each entry.ArrayRealVector.mapCosToSelf()Map theMath.cos(double)function to each entry.RealVector.mapCosToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapDivide(double d) Divide each entry.RealVector.mapDivide(double d) Divide each entry.AbstractRealVector.mapDivideToSelf(double d) Divide each entry.ArrayRealVector.mapDivideToSelf(double d) Divide each entry.RealVector.mapDivideToSelf(double d) Divide each entry.AbstractRealVector.mapExp()Map theMath.exp(double)function to each entry.RealVector.mapExp()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapExpm1()Map theMath.expm1(double)function to each entry.RealVector.mapExpm1()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapExpm1ToSelf()Map theMath.expm1(double)function to each entry.ArrayRealVector.mapExpm1ToSelf()Map theMath.expm1(double)function to each entry.RealVector.mapExpm1ToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapExpToSelf()MapMath.exp(double)operation to each entry.ArrayRealVector.mapExpToSelf()MapMath.exp(double)operation to each entry.RealVector.mapExpToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapFloor()Map theMath.floor(double)function to each entry.RealVector.mapFloor()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapFloorToSelf()Map theMath.floor(double)function to each entry.ArrayRealVector.mapFloorToSelf()Map theMath.floor(double)function to each entry.RealVector.mapFloorToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapInv()Map the 1/x function to each entry.RealVector.mapInv()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapInvToSelf()Map the 1/x function to each entry.ArrayRealVector.mapInvToSelf()Map the 1/x function to each entry.RealVector.mapInvToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapLog()Map theMath.log(double)function to each entry.RealVector.mapLog()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapLog10()Map theMath.log10(double)function to each entry.RealVector.mapLog10()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapLog10ToSelf()Map theMath.log10(double)function to each entry.ArrayRealVector.mapLog10ToSelf()Map theMath.log10(double)function to each entry.RealVector.mapLog10ToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapLog1p()Map theMath.log1p(double)function to each entry.RealVector.mapLog1p()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapLog1pToSelf()Map theMath.log1p(double)function to each entry.ArrayRealVector.mapLog1pToSelf()Map theMath.log1p(double)function to each entry.RealVector.mapLog1pToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapLogToSelf()Map theMath.log(double)function to each entry.ArrayRealVector.mapLogToSelf()Map theMath.log(double)function to each entry.RealVector.mapLogToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapMultiply(double d) Multiply each entry.RealVector.mapMultiply(double d) Multiply each entry.AbstractRealVector.mapMultiplyToSelf(double d) Multiply each entry.ArrayRealVector.mapMultiplyToSelf(double d) Multiply each entry.RealVector.mapMultiplyToSelf(double d) Multiply each entry.AbstractRealVector.mapPow(double d) Map a power operation to each entry.RealVector.mapPow(double d) Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapPowToSelf(double d) Map a power operation to each entry.ArrayRealVector.mapPowToSelf(double d) Map a power operation to each entry.RealVector.mapPowToSelf(double d) Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapRint()Map theMath.rint(double)function to each entry.RealVector.mapRint()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapRintToSelf()Map theMath.rint(double)function to each entry.ArrayRealVector.mapRintToSelf()Map theMath.rint(double)function to each entry.RealVector.mapRintToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapSignum()Map theMath.signum(double)function to each entry.RealVector.mapSignum()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapSignumToSelf()Map theMath.signum(double)function to each entry.ArrayRealVector.mapSignumToSelf()Map theMath.signum(double)function to each entry.RealVector.mapSignumToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapSin()Map theMath.sin(double)function to each entry.RealVector.mapSin()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapSinh()Map theMath.sinh(double)function to each entry.RealVector.mapSinh()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapSinhToSelf()Map theMath.sinh(double)function to each entry.ArrayRealVector.mapSinhToSelf()Map theMath.sinh(double)function to each entry.RealVector.mapSinhToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapSinToSelf()Map theMath.sin(double)function to each entry.ArrayRealVector.mapSinToSelf()Map theMath.sin(double)function to each entry.RealVector.mapSinToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapSqrt()Map theMath.sqrt(double)function to each entry.RealVector.mapSqrt()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapSqrtToSelf()Map theMath.sqrt(double)function to each entry.ArrayRealVector.mapSqrtToSelf()Map theMath.sqrt(double)function to each entry.RealVector.mapSqrtToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapSubtract(double d) Subtract a value from each entry.RealVector.mapSubtract(double d) Subtract a value from each entry.AbstractRealVector.mapSubtractToSelf(double d) Subtract a value from each entry.ArrayRealVector.mapSubtractToSelf(double d) Subtract a value from each entry.RealVector.mapSubtractToSelf(double d) Subtract a value from each entry.AbstractRealVector.mapTan()Map theMath.tan(double)function to each entry.RealVector.mapTan()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapTanh()Map theMath.tanh(double)function to each entry.RealVector.mapTanh()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapTanhToSelf()Map theMath.tanh(double)function to each entry.ArrayRealVector.mapTanhToSelf()Map theMath.tanh(double)function to each entry.RealVector.mapTanhToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapTanToSelf()Map theMath.tan(double)function to each entry.ArrayRealVector.mapTanToSelf()Map theMath.tan(double)function to each entry.RealVector.mapTanToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapToSelf(UnivariateRealFunction function) Acts as if it is implemented as:RealVector.mapToSelf(UnivariateRealFunction function) Acts as if it is implemented as:AbstractRealVector.mapUlp()Map theMath.ulp(double)function to each entry.RealVector.mapUlp()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealVector.mapUlpToSelf()Map theMath.ulp(double)function to each entry.ArrayRealVector.mapUlpToSelf()Map theMath.ulp(double)function to each entry.RealVector.mapUlpToSelf()Deprecated.in 2.2 (to be removed in 3.0).AbstractRealMatrix.operate(RealVector v) Returns the result of multiplying this by the vectorv.RealMatrix.operate(RealVector v) Returns the result of multiplying this by the vectorv.AbstractRealMatrix.preMultiply(RealVector v) Returns the (row) vector result of premultiplying this by the vectorv.RealMatrix.preMultiply(RealVector v) Returns the (row) vector result of premultiplying this by the vectorv.AbstractRealVector.projection(double[] v) Find the orthogonal projection of this vector onto another vector.ArrayRealVector.projection(double[] v) Find the orthogonal projection of this vector onto another vector.ArrayRealVector.projection(RealVector v) Find the orthogonal projection of this vector onto another vector.OpenMapRealVector.projection(RealVector v) Find the orthogonal projection of this vector onto another vector.RealVector.projection(double[] v) Find the orthogonal projection of this vector onto another vector.RealVector.projection(RealVector v) Find the orthogonal projection of this vector onto another vector.DecompositionSolver.solve(RealVector b) Solve the linear equation A × X = B for matrices A.AbstractRealVector.subtract(double[] v) Subtractvfrom this vector.AbstractRealVector.subtract(RealVector v) Subtractvfrom this vector.ArrayRealVector.subtract(double[] v) Subtractvfrom this vector.ArrayRealVector.subtract(RealVector v) Subtractvfrom this vector.RealVector.subtract(double[] v) Subtractvfrom this vector.RealVector.subtract(RealVector v) Subtractvfrom this vector.AbstractRealVector.unitVector()Creates a unit vector pointing in the direction of this vector.ArrayRealVector.unitVector()Creates a unit vector pointing in the direction of this vector.RealVector.unitVector()Creates a unit vector pointing in the direction of this vector.Methods in org.apache.commons.math.linear with parameters of type RealVectorModifier and TypeMethodDescriptionAbstractRealVector.add(RealVector v) Compute the sum of this vector andv.ArrayRealVector.add(RealVector v) Compute the sum of this vector andv.OpenMapRealVector.add(RealVector v) Compute the sum of this vector andv.RealVector.add(RealVector v) Compute the sum of this vector andv.ArrayRealVector.append(RealVector v) Construct a vector by appending a vector to this vector.OpenMapRealVector.append(RealVector v) Construct a vector by appending a vector to this vector.RealVector.append(RealVector v) Construct a vector by appending a vector to this vector.protected voidAbstractRealVector.checkVectorDimensions(RealVector v) Check if instance and specified vectors have the same dimension.protected voidArrayRealVector.checkVectorDimensions(RealVector v) Check if instance and specified vectors have the same dimension.doubleAbstractRealVector.dotProduct(RealVector v) Compute the dot product.doubleArrayRealVector.dotProduct(RealVector v) Compute the dot product.doubleOpenMapRealVector.dotProduct(RealVector v) Compute the dot product.doubleRealVector.dotProduct(RealVector v) Compute the dot product.ArrayRealVector.ebeDivide(RealVector v) Element-by-element division.OpenMapRealVector.ebeDivide(RealVector v) Element-by-element division.RealVector.ebeDivide(RealVector v) Element-by-element division.ArrayRealVector.ebeMultiply(RealVector v) Element-by-element multiplication.OpenMapRealVector.ebeMultiply(RealVector v) Element-by-element multiplication.RealVector.ebeMultiply(RealVector v) Element-by-element multiplication.RealVectorFormat.format(RealVector vector, StringBuffer toAppendTo, FieldPosition pos) Formats aRealVectorobject to produce a string.static StringRealVectorFormat.formatRealVector(RealVector v) This static method callsFormat.format(Object)on a default instance of RealVectorFormat.doubleAbstractRealVector.getDistance(RealVector v) Distance between two vectors.doubleArrayRealVector.getDistance(RealVector v) Distance between two vectors.doubleOpenMapRealVector.getDistance(RealVector v) Distance between two vectors.doubleRealVector.getDistance(RealVector v) Distance between two vectors.doubleAbstractRealVector.getL1Distance(RealVector v) Distance between two vectors.doubleArrayRealVector.getL1Distance(RealVector v) Distance between two vectors.doubleOpenMapRealVector.getL1Distance(RealVector v) Distance between two vectors.doubleRealVector.getL1Distance(RealVector v) Distance between two vectors.doubleAbstractRealVector.getLInfDistance(RealVector v) Distance between two vectors.doubleArrayRealVector.getLInfDistance(RealVector v) Distance between two vectors.doubleOpenMapRealVector.getLInfDistance(RealVector v) Distance between two vectors.doubleRealVector.getLInfDistance(RealVector v) Distance between two vectors.AbstractRealMatrix.operate(RealVector v) Returns the result of multiplying this by the vectorv.RealMatrix.operate(RealVector v) Returns the result of multiplying this by the vectorv.AbstractRealVector.outerProduct(RealVector v) Compute the outer product.ArrayRealVector.outerProduct(RealVector v) Compute the outer product.RealVector.outerProduct(RealVector v) Compute the outer product.AbstractRealMatrix.preMultiply(RealVector v) Returns the (row) vector result of premultiplying this by the vectorv.RealMatrix.preMultiply(RealVector v) Returns the (row) vector result of premultiplying this by the vectorv.ArrayRealVector.projection(RealVector v) Find the orthogonal projection of this vector onto another vector.OpenMapRealVector.projection(RealVector v) Find the orthogonal projection of this vector onto another vector.RealVector.projection(RealVector v) Find the orthogonal projection of this vector onto another vector.static voidMatrixUtils.serializeRealVector(RealVector vector, ObjectOutputStream oos) Serialize aRealVector.voidAbstractRealMatrix.setColumnVector(int column, RealVector vector) Sets the entries in column numbercolumnas a vector.voidBlockRealMatrix.setColumnVector(int column, RealVector vector) Sets the entries in column numbercolumnas a vector.voidRealMatrix.setColumnVector(int column, RealVector vector) Sets the entries in column numbercolumnas a vector.voidAbstractRealMatrix.setRowVector(int row, RealVector vector) Sets the entries in row numberrowas a vector.voidBlockRealMatrix.setRowVector(int row, RealVector vector) Sets the entries in row numberrowas a vector.voidRealMatrix.setRowVector(int row, RealVector vector) Sets the entries in row numberrowas a vector.voidAbstractRealVector.setSubVector(int index, RealVector v) Set a set of consecutive elements.voidArrayRealVector.setSubVector(int index, RealVector v) Set a set of consecutive elements.voidOpenMapRealVector.setSubVector(int index, RealVector v) Set a set of consecutive elements.voidRealVector.setSubVector(int index, RealVector v) Set a set of consecutive elements.DecompositionSolver.solve(RealVector b) Solve the linear equation A × X = B for matrices A.AbstractRealVector.subtract(RealVector v) Subtractvfrom this vector.ArrayRealVector.subtract(RealVector v) Subtractvfrom this vector.OpenMapRealVector.subtract(RealVector v) Subtractvfrom this vector.RealVector.subtract(RealVector v) Subtractvfrom this vector.Constructors in org.apache.commons.math.linear with parameters of type RealVectorModifierConstructorDescriptionArrayRealVector(ArrayRealVector v1, RealVector v2) Construct a vector by appending one vector to another vector.Construct a vector from another vector, using a deep copy.ArrayRealVector(RealVector v1, ArrayRealVector v2) Construct a vector by appending one vector to another vector.Generic copy constructor. -
Uses of RealVector in org.apache.commons.math.optimization.linear
Methods in org.apache.commons.math.optimization.linear that return RealVectorModifier and TypeMethodDescriptionLinearConstraint.getCoefficients()Get the coefficients of the constraint (left hand side).LinearObjectiveFunction.getCoefficients()Get the coefficients of the linear equation being optimized.Methods in org.apache.commons.math.optimization.linear with parameters of type RealVectorModifier and TypeMethodDescriptiondoubleLinearObjectiveFunction.getValue(RealVector point) Compute the value of the linear equation at the current pointConstructors in org.apache.commons.math.optimization.linear with parameters of type RealVectorModifierConstructorDescriptionLinearConstraint(RealVector lhsCoefficients, double lhsConstant, Relationship relationship, RealVector rhsCoefficients, double rhsConstant) Build a constraint involving two linear equations.LinearConstraint(RealVector coefficients, Relationship relationship, double value) Build a constraint involving a single linear equation.LinearObjectiveFunction(RealVector coefficients, double constantTerm) -
Uses of RealVector in org.apache.commons.math.stat.regression
Fields in org.apache.commons.math.stat.regression declared as RealVectorModifier and TypeFieldDescriptionprotected RealVectorAbstractMultipleLinearRegression.YY sample data.Methods in org.apache.commons.math.stat.regression that return RealVectorModifier and TypeMethodDescriptionprotected abstract RealVectorAbstractMultipleLinearRegression.calculateBeta()Calculates the beta of multiple linear regression in matrix notation.protected RealVectorGLSMultipleLinearRegression.calculateBeta()Calculates beta by GLS.protected RealVectorOLSMultipleLinearRegression.calculateBeta()Calculates the regression coefficients using OLS.protected RealVectorAbstractMultipleLinearRegression.calculateResiduals()Calculates the residuals of multiple linear regression in matrix notation.