ru.sscc.spline.reduction
Class StrictScatteredMesh

java.lang.Object
  |
  +--ru.sscc.spline.reduction.ReducedMesh
        |
        +--ru.sscc.spline.reduction.StrictScatteredMesh

public final class StrictScatteredMesh
extends ReducedMesh

The implementation of the reduced mesh stored internally in the double type container.

See Also:
Serialized Form

Fields inherited from class ru.sscc.spline.reduction.ReducedMesh
reduction, size
 
Constructor Summary
StrictScatteredMesh(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.
StrictScatteredMesh(RealVectors data, double scale)
          Constructs the reduced mesh using the uniscaled reduction with a user's defined scale factor.
StrictScatteredMesh(RealVectors data, RealPointer scale)
          Constructs the reduced mesh using the scaled reduction with a user's defined scale vector.
StrictScatteredMesh(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 ru.sscc.spline.reduction.ReducedMesh
coverByOrthogonalReduction, findOrthogonalBase, initialDimension, reducedDimension, reducePoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrictScatteredMesh

public StrictScatteredMesh(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

StrictScatteredMesh

public StrictScatteredMesh(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 mesh
scale - the scale vector

StrictScatteredMesh

public StrictScatteredMesh(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 mesh
scale - the scale vector (null value mean autoscaling to the unit cube)

StrictScatteredMesh

public StrictScatteredMesh(Reduction reduction,
                           RealVectors data)
Constructs the reduced mesh using a user's defined reduction.
Parameters:
reduction - the reduction
data - the initial mesh
Method Detail

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 number
y - 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 index
point - a point to copy to