public class RealVectorSpace extends Object
Constructor and Description |
---|
RealVectorSpace(double epsilon,
Vector... elements)
Construct a vector space from an array of vectors.
|
RealVectorSpace(List<Vector> elements)
Construct a vector space from a list of vectors.
|
RealVectorSpace(List<Vector> elements,
double epsilon)
Construct a vector space from a list of vectors.
|
RealVectorSpace(Matrix A)
Construct a vector space from a matrix (a set of column vectors).
|
RealVectorSpace(Matrix A,
double epsilon)
Construct a vector space from a matrix (a set of column vectors).
|
RealVectorSpace(Vector... elements)
Construct a vector space from an array of vectors.
|
Modifier and Type | Method and Description |
---|---|
List<Vector> |
getBasis()
Get the orthogonal basis.
|
List<Vector> |
getComplement()
Get the basis of the orthogonal complement.
|
Vector |
getLinearSpan(double... d)
Deprecated.
Not supported yet.
|
Vector |
getSpanningCoefficients(Vector b)
Find a linear combination of the basis that best approximates a vector in the least square
sense.
|
boolean |
isInKernel(Vector b)
Deprecated.
Not supported yet.
|
boolean |
isSpanned(Vector b)
Check whether a vector is in the span of the basis.
|
int |
rank()
Get the rank of this vector space.
|
public RealVectorSpace(Matrix A, double epsilon)
A
- a matrix, i.e., (a set of column vectors)epsilon
- a precision parameter: when a number |x| ≤ ε, it is considered 0.
The ε is used to determine the numerical rank of the linear space.public RealVectorSpace(Matrix A)
A
- a matrix, i.e., (a set of column vectors)public RealVectorSpace(List<Vector> elements, double epsilon)
elements
- a list of vectorsepsilon
- a precision parameter: when a number |x| ≤ ε, it is considered 0.
The ε is used to determine the numerical rank of the linear space.public RealVectorSpace(List<Vector> elements)
elements
- a list of vectorspublic RealVectorSpace(double epsilon, Vector... elements)
epsilon
- a precision parameter: when a number |x| ≤ ε, it is considered 0.
The ε is used to determine the numerical rank of the linear space.elements
- a list of vectorspublic RealVectorSpace(Vector... elements)
elements
- a list of vectorspublic int rank()
public List<Vector> getComplement()
@Deprecated public Vector getLinearSpan(double... d)
d
- coefficientspublic Vector getSpanningCoefficients(Vector b)
b
- a vectornull
if b
is not
in the vector spaceOLSSolver
public boolean isSpanned(Vector b)
b
- a vectortrue
if b
is in this vector space@Deprecated public boolean isInKernel(Vector b)
b
- a vectortrue
if b
is in the kernel/nullspace of this vector spaceCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.