add default constructor

This commit is contained in:
Ahmet Inan 2018-08-19 15:45:00 +02:00
commit e1671026da

View file

@ -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);