aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/src/LevenbergMarquardt
diff options
context:
space:
mode:
authorGravatar Nicolas Mellado <Nicolas.Mellado@irit.fr>2015-07-17 09:11:49 +0200
committerGravatar Nicolas Mellado <Nicolas.Mellado@irit.fr>2015-07-17 09:11:49 +0200
commit3275eddc24c65e33be9eb48d40551f28451421f2 (patch)
tree6786b390ef944bbf55dfa14eb3f468c3cd51f841 /unsupported/Eigen/src/LevenbergMarquardt
parent979b73cebfcdd8a4b323e75b4238f21af3036326 (diff)
Add const getters for LM parameters
Diffstat (limited to 'unsupported/Eigen/src/LevenbergMarquardt')
-rw-r--r--unsupported/Eigen/src/LevenbergMarquardt/LevenbergMarquardt.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/unsupported/Eigen/src/LevenbergMarquardt/LevenbergMarquardt.h b/unsupported/Eigen/src/LevenbergMarquardt/LevenbergMarquardt.h
index 9eca33d04..b30e0a90a 100644
--- a/unsupported/Eigen/src/LevenbergMarquardt/LevenbergMarquardt.h
+++ b/unsupported/Eigen/src/LevenbergMarquardt/LevenbergMarquardt.h
@@ -175,6 +175,24 @@ class LevenbergMarquardt : internal::no_assignment_operator
/** Use an external Scaling. If set to true, pass a nonzero diagonal to diag() */
void setExternalScaling(bool value) {m_useExternalScaling = value; }
+ /** \returns the tolerance for the norm of the solution vector */
+ RealScalar xtol() const {return m_xtol; }
+
+ /** \returns the tolerance for the norm of the vector function */
+ RealScalar ftol() const {return m_ftol; }
+
+ /** \returns the tolerance for the norm of the gradient of the error vector */
+ RealScalar gtol() const {return m_gtol; }
+
+ /** \returns the step bound for the diagonal shift */
+ RealScalar factor() const {return m_factor; }
+
+ /** \returns the error precision */
+ RealScalar epsilon() const {return m_epsfcn; }
+
+ /** \returns the maximum number of function evaluation */
+ Index maxfev() const {return m_maxfev; }
+
/** \returns a reference to the diagonal of the jacobian */
FVectorType& diag() {return m_diag; }