Example usage for Java org.apache.commons.math.linear RealVector fields, constructors, methods, implement or subclass
The text is from its open source code.
RealVector | add(RealVector v) Compute the sum of this vector and v . |
RealVector | add(double[] v) Compute the sum of this vector and v . |
RealVector | 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 | copy() Returns a (deep) copy of this vector. |
double | dotProduct(RealVector v) Compute the dot product. |
double | dotProduct(double[] v) Compute the dot product. |
double[] | getData() Returns vector entries as a double array. |
int | getDimension() Returns the size of the vector. |
double | getDistance(RealVector v) Distance between two vectors. |
double | getDistance(double[] v) Distance between two vectors. |
double | getEntry(int index) Returns the entry in the specified index. |
double | getL1Distance(RealVector v) Distance between two vectors. |
double | getL1Distance(double[] v) Distance between two vectors. |
double | getL1Norm() Returns the L1 norm of the vector. |
double | getLInfNorm() Returns the L∞ norm of the vector. |
double | getNorm() Returns the L2 norm of the vector. |
RealVector | mapDivide(double d) Divide each entry. |
RealVector | mapMultiply(double d) Multiply each entry. |
RealVector | mapMultiplyToSelf(double d) Multiply each entry. |
RealMatrix | outerProduct(RealVector v) Compute the outer product. |
RealMatrix | outerProduct(double[] v) Compute the outer product. |
void | setEntry(int index, double value) Set a single element. |
RealVector | subtract(RealVector v) Subtract v from this vector. |
RealVector | subtract(double[] v) Subtract v from this vector. |
double[] | toArray() Convert the vector to a double array. |
void | unitize() Converts this vector into a unit vector. |