Skip to content

Commit

Permalink
Update FullTSQuadraticSeries.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JaapvanEkris authored Jan 8, 2024
1 parent 6a6c195 commit 5ea6de1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/engine/utils/FullTSQuadraticSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ function createTSQuadraticSeries (maxSeriesLength = 0) {
let sst = 0
if (X.length() >= 2) {
while (i < X.length() - 1) {
ssr =+ Math.pow((Y.get(i) - projectX(X.get(i))), 2)
sst =+ Math.pow((Y.get(i) - Y.average()), 2)
ssr += Math.pow((Y.get(i) - projectX(X.get(i))), 2)
sst += Math.pow((Y.get(i) - Y.average()), 2)
i++
}
if (sst !== 0) {
Expand Down

0 comments on commit 5ea6de1

Please sign in to comment.