Class Scine::Utils::UpdateFunctionManagerBase¶
-
class
UpdateFunctionManagerBase
¶ This class manages the two different update functions that are neccessary for a least squares optimization using Eigen.
Public Functions
-
virtual void
updateErrors
(const Eigen::VectorXd ¶meters, Eigen::VectorXd &errors) = 0¶ Update the errors vector for the least squares optimization for a given set of parameters.
- Parameters
parameters
: The parameters.errors
: The error vector to update within this function.
-
void
updateJacobian
(const Eigen::VectorXd ¶meters, Eigen::MatrixXd &jacobian)¶ Update the Jacobian matrix for the least squares optimization for a given set of parameters.
The base implementation is a numerical Jacobian.
- Parameters
parameters
: The parameters.jacobian
: The Jacobian matrix to update within this function.
-
virtual int
getNumberOfDataPoints
(const Eigen::VectorXd ¶meters) const = 0¶ This function returns the number of data points present in the least squares optimization.
- Return
The number of data points present in the least squares optimization.
- Parameters
parameters
: The parameters.
-
virtual void