public class Projection extends Object
Constructor and Description |
---|
Projection(Vector v,
List<Vector> basis)
Project a vector v onto a set of basis {wi}.
|
Projection(Vector v,
Vector w)
Project a vector v onto another vector.
|
Projection(Vector v,
Vector[] basis)
Project a vector v onto a set of basis {wi}.
|
Modifier and Type | Method and Description |
---|---|
ImmutableVector |
getOrthogonalVector()
Get the orthogonal vector which is equal to v minus the projection of v on {wi}.
|
double |
getProjectionLength(int i)
Get the length of v projected on each dimension {wi}.
|
ImmutableVector |
getProjectionVector(int i)
Get the i-th projected vector of v on {wi}.
|
public Projection(Vector v, List<Vector> basis)
v
- a vectorbasis
- {wi}public Projection(Vector v, Vector[] basis)
v
- a vectorbasis
- {wi}public ImmutableVector getOrthogonalVector()
public double getProjectionLength(int i)
i
- an index, counting from 0public ImmutableVector getProjectionVector(int i)
i
- an index, counting from 0Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.