From dd924b2cea016084e6ae80f391aaefae0f94b461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Fri, 8 Jun 2018 14:02:43 +0200 Subject: [PATCH] [apps/reg] Fix logistic formula --- apps/regression/model/logistic_model.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/regression/model/logistic_model.cpp b/apps/regression/model/logistic_model.cpp index 3e68e7154..45451621d 100644 --- a/apps/regression/model/logistic_model.cpp +++ b/apps/regression/model/logistic_model.cpp @@ -11,8 +11,9 @@ ExpressionLayout * LogisticModel::layout() { static ExpressionLayout * layout = nullptr; if (layout == nullptr) { const ExpressionLayout * layoutChildren[] = { - new CharLayout('a', KDText::FontSize::Small), + new CharLayout('1', KDText::FontSize::Small), new CharLayout('+', KDText::FontSize::Small), + new CharLayout('a', KDText::FontSize::Small), new CharLayout('e', KDText::FontSize::Small), new VerticalOffsetLayout( new HorizontalLayout( @@ -25,7 +26,7 @@ ExpressionLayout * LogisticModel::layout() { }; layout = new FractionLayout( new CharLayout('c', KDText::FontSize::Small), - new HorizontalLayout(layoutChildren, 4, false), + new HorizontalLayout(layoutChildren, 5, false), false); } return layout;