From e7d2c61cec8c6233ced5651e2493bc07b4e23816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Mon, 29 Apr 2019 16:33:52 +0200 Subject: [PATCH] [apps/regression] Increase the iterations limit to compute a regression The exponential regression on the following data now works: 1 120000 3 130000 6 150000 8 160000 --- apps/regression/model/model.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/regression/model/model.h b/apps/regression/model/model.h index 86e586ee5..60a4e5470 100644 --- a/apps/regression/model/model.h +++ b/apps/regression/model/model.h @@ -47,7 +47,7 @@ private: virtual double partialDerivate(double * modelCoefficients, int derivateCoefficientIndex, double x) const = 0; // Levenberg-Marquardt - static constexpr double k_maxIterations = 100; + static constexpr double k_maxIterations = 300; static constexpr double k_maxMatrixInversionFixIterations = 10; static constexpr double k_initialLambda = 0.001; static constexpr double k_lambdaFactor = 10;