|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ru.sscc.spline.reduction.ReducedMesh
The abstract support for a multidimensional mesh. An initial user's mesh is transformed in some way (usually with affine transform) and is stored in reduced mesh. The dimensions of initial and reduced meshes may differ (the reduced dimension may be less than the initial one). The class describes abstract methods for point reduction and calculation of squared distance between the reduced point and a mesh node.
Field Summary | |
Reduction |
reduction
The reduction used in the mesh. |
int |
size
The number of points in the reduced mesh. |
Constructor Summary | |
ReducedMesh(Reduction reduction,
int size)
Constructor. |
Method Summary | |
static Reduction |
coverByOrthogonalReduction(Reduction reduction,
RealVectors data,
double reductionAccuracy)
Applies the findOrthogonalBase method to calculated the orthogonal base and covers the reduction by the orthogonal reduction if the base found (otherwise returns the initial reduction). |
static DenseMatrix |
findOrthogonalBase(Reduction reduction,
RealVectors data,
double reductionAccuracy)
Finds an orthonormal base of vectors that are orthogonal to mesh vectors after the transformion by specified reduction. |
int |
initialDimension()
Returns the dimension of initial space of independent varibles. |
abstract void |
putNode(int i,
RealPointer point)
Copies i-th node of the reduced mesh to the point specified. |
int |
reducedDimension()
Returns the dimension of reduced space of independent varibles. |
void |
reducePoint(RealPointer x,
RealPointer y)
Transforms point coordinates from initial to reduced. |
abstract double |
squaredDistance(int i,
RealPointer y)
Calculates the squared distance between i-th mesh node of reduced mesh and a point prepared in reduced coordinates. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public final Reduction reduction
public final int size
Constructor Detail |
public ReducedMesh(Reduction reduction, int size)
reduction
- a reduction usedsize
- a number of mesh nodesMethod Detail |
public final int initialDimension()
public final int reducedDimension()
public final void reducePoint(RealPointer x, RealPointer y)
x
- the point in initial coordinatesy
- the point in reduced coordinatespublic abstract double squaredDistance(int i, RealPointer y)
i
- a mesh node numbery
- a point in reduced coordinatespublic abstract void putNode(int i, RealPointer point)
point
- a point to copy toi
- a node indexpublic static DenseMatrix findOrthogonalBase(Reduction reduction, RealVectors data, double reductionAccuracy)
reduction
- a space reductiondata
- a user's meshreductionAccuracy
- a reduction accuracy used in the algorithm
(a small non-negative value. Use the relative accuracy
of mesh data here)public static Reduction coverByOrthogonalReduction(Reduction reduction, RealVectors data, double reductionAccuracy)
reduction
- a space reductiondata
- a user's meshreductionAccuracy
- a reduction accuracy used in the algorithm
(a small non-negative value. Use the relative accuracy
of mesh data here)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |