From fc75f205ee4d84b669d828e3bc74af6ddab899b9 Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Mon, 24 Apr 2017 23:06:50 -0700 Subject: [PATCH] tweaks --- polynomial_regression_series.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polynomial_regression_series.go b/polynomial_regression_series.go index 66f615a..c5a4a08 100644 --- a/polynomial_regression_series.go +++ b/polynomial_regression_series.go @@ -139,8 +139,8 @@ func (prs *PolynomialRegressionSeries) values() (xvalues, yvalues []float64) { for index := startIndex; index < endIndex; index++ { x, y := prs.InnerSeries.GetValue(index) - xvalues[index] = x - yvalues[index] = y + xvalues[index-startIndex] = x + yvalues[index-startIndex] = y } return