ru.sscc.spline.reduction
Class UniscaledReduction
java.lang.Object
|
+--ru.sscc.spline.reduction.UniscaledReduction
- public final class UniscaledReduction
- extends java.lang.Object
- implements Reduction
The implementation of an abstract space reduction based on affine transform
y=scale*(x-origin) with the same scale factor for all directions.
Here x is an initial point,
y is the reduced point,
scale is a scale factor,
origin is an origin point.
- See Also:
- Serialized Form
Method Summary |
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 y = scale*(x-origin). |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
UniscaledReduction
public UniscaledReduction(RealPointer origin,
double scale,
int dimension)
- Constructs the reduction based on user's origin vector and scale.
- Parameters:
origin
- the reduction originscale
- the scale factordimension
- the space dimension
UniscaledReduction
public UniscaledReduction(RealVectors data)
- Constructs the reduction scale factor in such a way
to map a mesh bounding box into unit multidimensional cube.
The mass center is associated with the new origin.
- Parameters:
data
- an initial mesh
UniscaledReduction
public UniscaledReduction(RealVectors data,
double scale)
- Constructs the reduction based on user's scale factor.
The mass center is associated with the new origin.
- Parameters:
data
- the initial meshscale
- the scale factor
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 y = scale*(x-origin).
- Specified by:
- reducePoint in interface Reduction
- Parameters:
x
- a point in initial coordinatesy
- the point in reduced coordinates