[apps/reg] Put levenberg-marquardt methods in Model

This commit is contained in:
Léa Saviot
2018-06-06 16:57:53 +02:00
committed by Émilie Feral
parent 86c482aff3
commit 1c8ff9bd83
5 changed files with 59 additions and 83 deletions

View File

@@ -6,7 +6,6 @@
#include "../../poincare/src/layout/vertical_offset_layout.h"
#include <poincare.h>
#include <assert.h>
#include "levenberg_marquardt.h"
using namespace Poincare;
using namespace Shared;
@@ -48,9 +47,6 @@ bool CalculationController::handleEvent(Ion::Events::Event event) {
}
void CalculationController::didBecomeFirstResponder() {
LevenbergMarquartd lm(m_store);
double modelCoefficients[] = {1.0, 1.0, 1.0, 1.0, 1.0};
lm.fit(modelCoefficients, const_cast<AppsContainer *>(static_cast<const AppsContainer *>(app()->container()))->globalContext());
if (selectedRow() == -1) {
selectCellAtLocation(1, 0);
} else {