Package org.ddogleg.fitting.modelset
Interface ModelCodec<T>
public interface ModelCodec<T>
Used to convert a model to and from an array parameterized format.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Converts the parameter array into a model.void
Converts the provided model into the array format.int
Number of elements in array encoded parameters.
-
Method Details
-
decode
Converts the parameter array into a model.- Parameters:
input
- input model parameters.outputModel
- Output. The decoded model..
-
encode
Converts the provided model into the array format.- Parameters:
inputModel
- Input model.output
- Output parameterized model
-
getParamLength
int getParamLength()Number of elements in array encoded parameters.
-