Class ResidualGrid.Data
java.lang.Object
org.apache.sis.io.wkt.FormattableObject
org.apache.sis.referencing.operation.builder.ResidualGrid.Data
- Enclosing class:
ResidualGrid
private final class ResidualGrid.Data
extends FormattableObject
implements org.opengis.referencing.operation.Matrix, Function<int[],Number>
View over one target dimension of the localization grid. Used for populating the T extends javax.measure.Quantity<T>>.
If a grid has more dimensions, then tensors would need to be used instead of matrices.
ParameterDescriptorGroup
that describes the MathTransform
. Those parameters are themselves used for formatting Well Known Text.
Current implementation can be used only when the number of grid dimensions is 2<C extends javax.measure.Quantity<C>,This implementation cannot be moved to the DatumShiftGrid
parent class because this class assumes
that the translation vectors are added to the source coordinates. This is not always true; for example France
Geocentric interpolations add the translation to coordinates converted to geocentric coordinates.
- Since:
- 1.0
- Version:
- 1.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double
Coefficients from the denormalization matrix for the row corresponding to this dimension.private final double
Coefficients from the denormalization matrix for the row corresponding to this dimension.private final double
Coefficients from the denormalization matrix for the row corresponding to this dimension. -
Constructor Summary
ConstructorsConstructorDescriptionData
(int dim, org.opengis.referencing.operation.Matrix denormalization) Creates a new matrix for the specified dimension. -
Method Summary
Modifier and TypeMethodDescriptionapply
(int[] p) org.opengis.referencing.operation.Matrix
clone()
protected String
Returns a multi-lines string representation.double
getElement
(int y, int x) Computes the matrix element in the given row and column.int
int
boolean
void
setElement
(int y, int x, double v) toString()
Returns a short string representation on one line.Methods inherited from class org.apache.sis.io.wkt.FormattableObject
print, toString, toWKT
-
Field Details
-
c0
private final double c0Coefficients from the denormalization matrix for the row corresponding to this dimension. -
c1
private final double c1Coefficients from the denormalization matrix for the row corresponding to this dimension. -
c2
private final double c2Coefficients from the denormalization matrix for the row corresponding to this dimension.
-
-
Constructor Details
-
Data
Data(int dim, org.opengis.referencing.operation.Matrix denormalization) Creates a new matrix for the specified dimension.
-
-
Method Details
-
clone
public org.opengis.referencing.operation.Matrix clone() -
isIdentity
public boolean isIdentity()- Specified by:
isIdentity
in interfaceorg.opengis.referencing.operation.Matrix
-
getNumCol
public int getNumCol()- Specified by:
getNumCol
in interfaceorg.opengis.referencing.operation.Matrix
-
getNumRow
public int getNumRow()- Specified by:
getNumRow
in interfaceorg.opengis.referencing.operation.Matrix
-
apply
-
setElement
public void setElement(int y, int x, double v) - Specified by:
setElement
in interfaceorg.opengis.referencing.operation.Matrix
-
getElement
public double getElement(int y, int x) Computes the matrix element in the given row and column.- Specified by:
getElement
in interfaceorg.opengis.referencing.operation.Matrix
-
toString
Returns a short string representation on one line. This appears as a single row in the table formatted forParameterDescriptorGroup
string representation.- Overrides:
toString
in classFormattableObject
- Returns:
- the Well Known Text (WKT) or an alternative representation of this object.
-
formatTo
Returns a multi-lines string representation. This appears in the Well Known Text (WKT) formatting ofMathTransform
.- Specified by:
formatTo
in classFormattableObject
- Parameters:
formatter
- the formatter where to format the inner content of this WKT element.- Returns:
- the CamelCase keyword for the WKT element, or
null
if unknown. - See Also:
-