ru.sscc.spline.reduction
Class ScatteredMesh
java.lang.Object
|
+--ru.sscc.spline.reduction.ReducedMesh
|
+--ru.sscc.spline.reduction.ScatteredMesh
- public final class ScatteredMesh
- extends ReducedMesh
The implementation of the reduced mesh stored internally in the
float type container.
- See Also:
- Serialized Form
Constructor Summary |
ScatteredMesh(RealVectors data)
Constructs the reduced mesh using the uniscaled reduction in such
a way to map a mesh bounding box into the unit multidimensional cube. |
ScatteredMesh(RealVectors data,
double scale)
Constructs the reduced mesh using the uniscaled reduction with a user's
defined scale factor. |
ScatteredMesh(RealVectors data,
RealPointer scale)
Constructs the reduced mesh using the scaled reduction with a user's
defined scale vector. |
ScatteredMesh(Reduction reduction,
RealVectors data)
Constructs the reduced mesh using a user's defined reduction. |
Method Summary |
void |
putNode(int i,
RealPointer point)
Copies i-th node of the reduced mesh to the point specified. |
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 |
ScatteredMesh
public ScatteredMesh(RealVectors data)
- Constructs the reduced mesh using the uniscaled reduction in such
a way to map a mesh bounding box into the unit multidimensional cube.
A new origin is associated with the mass center.
- Parameters:
data
- the initial mesh
ScatteredMesh
public ScatteredMesh(RealVectors data,
double scale)
- Constructs the reduced mesh using the uniscaled reduction with a user's
defined scale factor.
A new origin is associated with the mass center.
- Parameters:
data
- the initial meshscale
- the scale vector
ScatteredMesh
public ScatteredMesh(RealVectors data,
RealPointer scale)
- Constructs the reduced mesh using the scaled reduction with a user's
defined scale vector.
A new origin is associated with the mass center.
- Parameters:
data
- the initial meshscale
- the scale vector (null value mean autoscaling to the unit cube)
ScatteredMesh
public ScatteredMesh(Reduction reduction,
RealVectors data)
- Constructs the reduced mesh using a user's defined reduction.
- Parameters:
reduction
- the reductiondata
- the initial mesh
squaredDistance
public final 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.
- Overrides:
- squaredDistance in class ReducedMesh
- Parameters:
i
- a mesh node numbery
- a point in reduced coordinates- Returns:
- a squared distance
putNode
public final void putNode(int i,
RealPointer point)
- Copies i-th node of the reduced mesh to the point specified.
- Overrides:
- putNode in class ReducedMesh
- Parameters:
i
- a node indexpoint
- a point to copy to