mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
[apps/reg] Put levenberg-marquardt methods in Model
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user