Update FullTSQuadraticSeries.js

This commit is contained in:
Jaap van Ekris 2024-01-08 12:12:55 +01:00 committed by GitHub
parent 6a6c195db1
commit 5ea6de180b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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