SourceXtractorPlusPlus
0.15
Please provide a description of the project.
|
LeastSquareEngine implementation which uses the GNU Scientific Library. More...
#include <GSLEngine.h>
Public Member Functions | |
GSLEngine (int itmax=1000, double xtol=1e-8, double gtol=1e-8, double ftol=1e-8, double delta=1e-4) | |
Constructs a new instance of the engine. More... | |
virtual | ~GSLEngine ()=default |
Destructor. More... | |
LeastSquareSummary | solveProblem (EngineParameterManager ¶meter_manager, ResidualEstimator &residual_estimator) override |
![]() | |
virtual | ~LeastSquareEngine ()=default |
Destructor. More... | |
Private Attributes | |
int | m_itmax |
double | m_xtol |
double | m_gtol |
double | m_ftol |
double | m_delta |
LeastSquareEngine implementation which uses the GNU Scientific Library.
Definition at line 39 of file GSLEngine.h.
ModelFitting::GSLEngine::GSLEngine | ( | int | itmax = 1000 , |
double | xtol = 1e-8 , |
||
double | gtol = 1e-8 , |
||
double | ftol = 1e-8 , |
||
double | delta = 1e-4 |
||
) |
Constructs a new instance of the engine.
itmax | Maximum number of iteratios |
xtol | Step tolerance: || xtol(|x_i| + xtol) |
gtol | Gradient tolerance: {i}{max}|g_i max(x_i, 1)| gtol max((x),1) |
ftol | Tolerance for the change in ^2 Some versions of the GSL library ignore this. |
delta | Step size for finite difference Jacobian |
Definition at line 40 of file GSLEngine.cpp.
|
virtualdefault |
Destructor.
|
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 117 of file GSLEngine.cpp.
References ModelFitting::EngineParameterManager::convertCovarianceMatrixToWorldSpace(), ModelFitting::EngineParameterManager::getEngineValues(), ModelFitting::getStatusFlag(), m_delta, m_ftol, m_gtol, m_itmax, m_xtol, ModelFitting::EngineParameterManager::numberOfParameters(), ModelFitting::ResidualEstimator::numberOfResiduals(), ModelFitting::ResidualEstimator::populateResiduals(), std::vector< T >::push_back(), std::sqrt(), std::tie(), ModelFitting::EngineParameterManager::updateEngineValues(), and ModelFitting::x.
|
private |
Definition at line 71 of file GSLEngine.h.
Referenced by solveProblem().
|
private |
Definition at line 71 of file GSLEngine.h.
Referenced by solveProblem().
|
private |
Definition at line 71 of file GSLEngine.h.
Referenced by solveProblem().
|
private |
Definition at line 70 of file GSLEngine.h.
Referenced by solveProblem().
|
private |
Definition at line 71 of file GSLEngine.h.
Referenced by solveProblem().