SourceXtractorPlusPlus  0.10
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
ModelFitting::LevmarEngine Class Reference

LeastSquareEngine implementation which uses the levmar library. More...

#include <LevmarEngine.h>

Inheritance diagram for ModelFitting::LevmarEngine:
[legend]
Collaboration diagram for ModelFitting::LevmarEngine:
[legend]

Public Member Functions

 LevmarEngine (size_t itmax=1000, double tau=1E-3, double epsilon1=1E-8, double epsilon2=1E-8, double epsilon3=1E-8, double delta=1E-4)
 Constructs a new instance of the engine. More...
 
virtual ~LevmarEngine ()
 Destructor. More...
 
LeastSquareSummary solveProblem (EngineParameterManager &parameter_manager, ResidualEstimator &residual_estimator) override
 
- Public Member Functions inherited from ModelFitting::LeastSquareEngine
virtual ~LeastSquareEngine ()=default
 Destructor. More...
 

Private Attributes

size_t m_itmax
 
std::vector< double > m_opts
 

Detailed Description

LeastSquareEngine implementation which uses the levmar library.

Definition at line 36 of file LevmarEngine.h.

Constructor & Destructor Documentation

ModelFitting::LevmarEngine::LevmarEngine ( size_t  itmax = 1000,
double  tau = 1E-3,
double  epsilon1 = 1E-8,
double  epsilon2 = 1E-8,
double  epsilon3 = 1E-8,
double  delta = 1E-4 
)

Constructs a new instance of the engine.

Parameters
itmaxmaximum number of iterations
tau$\tau$: scale factor for initial $\mu$
epsilon1$\epsilon1$: stopping threshold for $||J^T\epsilon||_{inf}$
epsilon2$\epsilon1$: stopping threshold for $||\Delta p||_2$
epsilon3$\epsilon1$: stopping threshold for $||\epsilon||_2$
deltastep used in difference approximation to the Jacobian

Definition at line 40 of file LevmarEngine.cpp.

ModelFitting::LevmarEngine::~LevmarEngine ( )
virtualdefault

Destructor.

Member Function Documentation

LeastSquareSummary ModelFitting::LevmarEngine::solveProblem ( EngineParameterManager parameter_manager,
ResidualEstimator residual_estimator 
)
overridevirtual

Solves the minimization problem using the levmar library. The returned summary contains as underlying_framework_info an std::array<double,10>, which keeps the information regarding the minimization as it is provided by levmar (for more info see http://users.ics.forth.gr/~lourakis/levmar).

Implements ModelFitting::LeastSquareEngine.

Definition at line 55 of file LevmarEngine.cpp.

References ModelFitting::EngineParameterManager::convertCovarianceMatrixToWorldSpace(), std::vector< T >::data(), std::array< T >::data(), ModelFitting::EngineParameterManager::getEngineValues(), m_itmax, m_opts, ModelFitting::EngineParameterManager::numberOfParameters(), ModelFitting::ResidualEstimator::numberOfResiduals(), ModelFitting::ResidualEstimator::populateResiduals(), std::vector< T >::push_back(), std::sqrt(), std::tie(), and ModelFitting::EngineParameterManager::updateEngineValues().

Here is the call graph for this function:

Member Data Documentation

size_t ModelFitting::LevmarEngine::m_itmax
private

Definition at line 71 of file LevmarEngine.h.

Referenced by solveProblem().

std::vector<double> ModelFitting::LevmarEngine::m_opts
private

Definition at line 72 of file LevmarEngine.h.

Referenced by solveProblem().


The documentation for this class was generated from the following files: