Class GridCoefND
java.lang.Object
org.ddogleg.chainrule.grid.GridCoefND
A grid with a set of coefficients at every vertex that act as a set of parameters for a function, such as
a polynomial or spline. The shape lives in config and the coefficients stored in a flat array,
laid out knot by knot in row major order.
Storage format
- name: string terminating with '\n'
- config: yaml serialized
configon a single line terminating with '\n' - length: string terminating with '\n'
- parameters: big endian double array
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ConfigGridCoefNDShape of the grid.double[]Coefficients for every knot,config.dof()of them -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfigure(ConfigGridCoefND config) Sets the shape and sizes the coefficients to match, leaving them at zeroconfigure(ConfigGridCoefND config, int minAxis) configure(ConfigGridCoefND)with the per-axis knot minimum given, so a nearest-neighbor field can store a 1x1 gridbooleanTrue if every field matches exactly.reset()setTo(GridCoefND src)
-
Field Details
-
config
Shape of the grid. Says how longparametershas to be -
parameters
public double[] parametersCoefficients for every knot,config.dof()of them
-
-
Constructor Details
-
GridCoefND
public GridCoefND() -
GridCoefND
-
-
Method Details
-
configure
Sets the shape and sizes the coefficients to match, leaving them at zero -
configure
configure(ConfigGridCoefND)with the per-axis knot minimum given, so a nearest-neighbor field can store a 1x1 grid -
setTo
-
reset
-
isIdentical
True if every field matches exactly. Coefficients are compared bit for bit, since this is used to check that saving and loading changed nothing
-