Example usage for Java org.apache.commons.math3.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 . |
void | addToEntry(int index, double increment) Change an entry at the specified index. |
RealVector | append(RealVector v) Construct a new vector by appending a vector to this vector. |
RealVector | append(double d) Construct a new vector by appending a double to this vector. |
RealVector | combineToSelf(double a, double b, RealVector y) Updates this with the linear combination of this and y . |
RealVector | copy() Returns a (deep) copy of this vector. |
double | cosine(RealVector v) Computes the cosine of the angle between this vector and the argument. |
double | dotProduct(RealVector v) Compute the dot product of this vector with v . |
RealVector | ebeDivide(RealVector v) Element-by-element division. |
RealVector | ebeMultiply(RealVector v) Element-by-element multiplication. |
boolean | equals(Object other) Test for the equality of two real vectors. |
Class> | getClass() Returns the runtime class of this Object . |
int | getDimension() Returns the size of the vector. |
double | getDistance(RealVector v) Distance between two vectors. |
double | getEntry(int index) Return the entry at the specified index. |
double | getL1Distance(RealVector v) Distance between two vectors. |
double | getL1Norm() Returns the L1 norm of the vector. |
double | getLInfDistance(RealVector v) Distance between two vectors. |
double | getLInfNorm() Returns the L∞ norm of the vector. |
int | getMaxIndex() Get the index of the maximum entry. |
double | getMaxValue() Get the value of the maximum entry. |
double | getMinValue() Get the value of the minimum entry. |
double | getNorm() Returns the L2 norm of the vector. |
RealVector | getSubVector(int index, int n) Get a subvector from consecutive elements. |
int | hashCode() This method must be overriden by concrete subclasses of RealVector (current implementation throws an exception). |
boolean | isInfinite() Check whether any coordinate of this vector is infinite and none are NaN . |
boolean | isNaN() Check whether any coordinate of this vector is NaN . |
RealVector | map(UnivariateFunction function) Acts as if implemented as: return copy().mapToSelf(function);Returns a new vector. |
RealVector | mapAdd(double d) Add a value to each entry. |
RealVector | mapAddToSelf(double d) Add a value to each entry. |
RealVector | mapDivide(double d) Divide each entry by the argument. |
RealVector | mapDivideToSelf(double d) Divide each entry by the argument. |
RealVector | mapMultiply(double d) Multiply each entry by the argument. |
RealVector | mapMultiplyToSelf(double d) Multiply each entry. |
RealVector | mapSubtract(double d) Subtract a value from each entry. |
RealVector | mapSubtractToSelf(double d) Subtract a value from each entry. |
RealVector | mapToSelf(UnivariateFunction function) Acts as if it is implemented as: Entry e = null; for(IteratorEntries of this vector are modified in-place by this method. |
RealMatrix | outerProduct(RealVector v) Compute the outer product. |
void | set(double value) Set all elements to a single value. |
void | setEntry(int index, double value) Set a single element. |
void | setSubVector(int index, RealVector v) Set a sequence of consecutive elements. |
RealVector | subtract(RealVector v) Subtract v from this vector. |
double[] | toArray() Convert the vector to an array of double s. |
String | toString() Returns a string representation of the object. |
RealVector | unitVector() Creates a unit vector pointing in the direction of this vector. |
double | walkInDefaultOrder(final RealVectorPreservingVisitor visitor) Visits (but does not alter) all entries of this vector in default order (increasing index). |
double | walkInDefaultOrder(final RealVectorChangingVisitor visitor) Visits (and possibly alters) all entries of this vector in default order (increasing index). |
double | walkInOptimizedOrder(final RealVectorPreservingVisitor visitor) Visits (but does not alter) all entries of this vector in optimized order. |
double | walkInOptimizedOrder(final RealVectorChangingVisitor visitor) Visits (and possibly alters) all entries of this vector in optimized order. |