![]() |
OpenMS
|
Generic LM functor with a raw-pointer interface, used to keep Eigen out of the public API. More...
#include <OpenMS/FEATUREFINDER/TraceFitter.h>
Public Member Functions | |
| int | inputs () const |
| Number of free parameters (input dimensionality). | |
| int | values () const |
| Number of residuals (data points). | |
| GenericFunctor (int dimensions, int num_data_points) | |
| Construct with the given problem dimensions. | |
| virtual | ~GenericFunctor () |
| virtual int | operator() (const double *x, double *fvec)=0 |
| Compute residuals at the current parameter vector. | |
| virtual int | df (const double *x, double *J)=0 |
| Compute the Jacobian at the current parameter vector. | |
Protected Attributes | |
| const int | m_inputs |
| const int | m_values |
Generic LM functor with a raw-pointer interface, used to keep Eigen out of the public API.
Subclasses implement the operator() to fill the residual vector and df to fill the Jacobian; the cpp wraps each side in an Eigen::Map before handing it to the LM solver.
| GenericFunctor | ( | int | dimensions, |
| int | num_data_points | ||
| ) |
Construct with the given problem dimensions.
| [in] | dimensions | Number of free parameters. |
| [in] | num_data_points | Number of residuals. |
|
virtual |
|
pure virtual |
Compute the Jacobian at the current parameter vector.
| [in] | x | Parameter vector of size inputs. |
| [out] | J | Jacobian matrix, values rows by inputs columns, stored column-major. |
0 on success. Implemented in EGHTraceFitter::EGHTraceFunctor, and GaussTraceFitter::GaussTraceFunctor.
| int inputs | ( | ) | const |
Number of free parameters (input dimensionality).
|
pure virtual |
Compute residuals at the current parameter vector.
0 on success. Implemented in EGHTraceFitter::EGHTraceFunctor, and GaussTraceFitter::GaussTraceFunctor.
| int values | ( | ) | const |
Number of residuals (data points).
|
protected |
|
protected |