![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Base/ParameterOptimization.h>
Base class for classes that wish to expose zero or more optimization parameters. More...
Base class for classes that wish to expose zero or more optimization parameters.
Classes that inherit from this one serialize and deserialize C++ objects (stored by reference) into an array of double
parameters. Such a parameter wrapper can be combined with a double-valued cost function (acting on the C++ objects) to yield an instance of the CostFunction interface (
double*
Public Member Functions | |
virtual int | dim () const =0 |
The number of (scalar) parameters wrapped by this object. | |
virtual void | deserialize (const double *v)=0 |
Update the stored references from a double representation. | |
virtual void | serialize (double *v) const =0 |
Updates a double representation from the stored references. | |
virtual std::string | name (int i) const =0 |
Name of the i th parameter, used for display purposes. | |
virtual std::unique_ptr< ParameterWrapperBase > | clone () const =0 |
Clone function. | |
|
pure virtual |
The number of (scalar) parameters wrapped by this object.
Implemented in AffineRescaledParameterOptimization, CombinedParameterWrapper, MatrixParameterWrapper< T >, ScalarParameterWrapper< T >, and VectorParameterWrapper< T >.
|
pure virtual |
Update the stored references from a double representation.
Implemented in AffineRescaledParameterOptimization, CombinedParameterWrapper, GeometryGeneratorParameterWrapper, MatrixParameterWrapper< T >, ScalarParameterWrapper< T >, and VectorParameterWrapper< T >.
|
pure virtual |
Updates a double representation from the stored references.
Implemented in AffineRescaledParameterOptimization, CombinedParameterWrapper, MatrixParameterWrapper< T >, ScalarParameterWrapper< T >, and VectorParameterWrapper< T >.
|
pure virtual |
Name of the i
th parameter, used for display purposes.
Implemented in AffineRescaledParameterOptimization, CombinedParameterWrapper, MatrixParameterWrapper< T >, ScalarParameterWrapper< T >, and VectorParameterWrapper< T >.
|
pure virtual |
Clone function.
Implemented in AffineRescaledParameterOptimization, CombinedParameterWrapper, MatrixParameterWrapper< T >, ScalarParameterWrapper< T >, and VectorParameterWrapper< T >.