From e1671026daa23209635a8b22acc39663aab57612 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Sun, 19 Aug 2018 15:45:00 +0200 Subject: [PATCH] add default constructor --- regression.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/regression.hh b/regression.hh index e692e66..28742a1 100644 --- a/regression.hh +++ b/regression.hh @@ -14,6 +14,7 @@ class SimpleLinearRegression { TYPE xint_, yint_, slope_; public: + SimpleLinearRegression() : xint_(0), yint_(0), slope_(0) {} SimpleLinearRegression(TYPE *x, TYPE *y, int LEN) { TYPE avgX(0), avgY(0);