SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.vector.doubles.dense.operation
Class Projection

java.lang.Object
  extended by com.numericalmethod.suanshu.vector.doubles.dense.operation.Projection

public class Projection
extends java.lang.Object

Project a vector v on another vector w or a set of vectors (basis) {wi}.

See Also:
Wikipedia: Vector projection

Field Summary
 double[] length
          the length of v projected on each dimension {wi}
 Vector orthogonalVector
          the orthogonal vector which is equal to v minus the projection of v on {wi}.
 Vector[] projVector
          the projected vectors of v on {wi} It lies on the hyperplane of {wi}.
 
Constructor Summary
Projection(Vector v, Vector basis)
          Construct a projection of a vector v onto another vector.
Projection(Vector v, Vector[] basis)
          Construct a projection of a vector v onto a set of basis {wi}.
Projection(Vector v, VectorList basis)
          Construct a projection of a vector v onto a set of basis {wi}.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

orthogonalVector

public final Vector orthogonalVector
the orthogonal vector which is equal to v minus the projection of v on {wi}.


length

public final double[] length
the length of v projected on each dimension {wi}


projVector

public final Vector[] projVector
the projected vectors of v on {wi}

It lies on the hyperplane of {wi}.

Constructor Detail

Projection

public Projection(Vector v,
                  VectorList basis)
Construct a projection of a vector v onto a set of basis {wi}.

Parameters:
v - a vector
basis - {wi}

Projection

public Projection(Vector v,
                  Vector[] basis)
Construct a projection of a vector v onto a set of basis {wi}.

Parameters:
v - a vector
basis - an array of {wi}

Projection

public Projection(Vector v,
                  Vector basis)
Construct a projection of a vector v onto another vector.

Parameters:
v - a vector
basis - another vector w

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.