ru.sscc.spline.reduction
Class OrthogonalReduction

java.lang.Object
  |
  +--ru.sscc.spline.reduction.OrthogonalReduction

public final class OrthogonalReduction
extends java.lang.Object
implements Reduction

The implementation of an abstract space reduction consisting of an internal reduction and orthogonalization with respect to a set of vectors.

See Also:
Serialized Form

Constructor Summary
OrthogonalReduction(Reduction reduction)
          Constructs the reduction based on user's reduction with zero capacity for the orthogonalization set.
OrthogonalReduction(Reduction reduction, int ortsCapacity)
          Constructs the reduction based on user's reduction and the orthogonalization base stored in the RealVectors instance.
OrthogonalReduction(Reduction reduction, RealVectors vectors)
          Constructs the reduction based on user's reduction and the set of vectors to orthogonalize to.
 
Method Summary
 void appendVector(RealPointer vector)
          Appends a vector to the orthogonalization set.
 int initialDimension()
          Returns the dimension of initial space of independent varibles.
 int reducedDimension()
          Returns the dimension of reduced space of independent varibles.
 void reducePoint(RealPointer x, RealPointer y)
          Transforms a point coordinates from initial to reduced using affine transformation yi = si*(xi-oi).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrthogonalReduction

public OrthogonalReduction(Reduction reduction)
Constructs the reduction based on user's reduction with zero capacity for the orthogonalization set.
Parameters:
reduction - the base reduction

OrthogonalReduction

public OrthogonalReduction(Reduction reduction,
                           int ortsCapacity)
Constructs the reduction based on user's reduction and the orthogonalization base stored in the RealVectors instance.
Parameters:
reduction - the base reduction
ortsCapacity - the initial capacity for orts to be used

OrthogonalReduction

public OrthogonalReduction(Reduction reduction,
                           RealVectors vectors)
Constructs the reduction based on user's reduction and the set of vectors to orthogonalize to.
Parameters:
reduction - the base reduction
vectors - the set of vectors for orthogonalization
Method Detail

appendVector

public void appendVector(RealPointer vector)
Appends a vector to the orthogonalization set.
Parameters:
vector - the pointer to the appended vector

initialDimension

public int initialDimension()
Returns the dimension of initial space of independent varibles.
Specified by:
initialDimension in interface Reduction

reducedDimension

public int reducedDimension()
Returns the dimension of reduced space of independent varibles.
Specified by:
reducedDimension in interface Reduction

reducePoint

public void reducePoint(RealPointer x,
                        RealPointer y)
Transforms a point coordinates from initial to reduced using affine transformation yi = si*(xi-oi).
Specified by:
reducePoint in interface Reduction
Parameters:
x - a point in initial coordinates
y - the point in reduced coordinates