Update FullTSQuadraticSeries.js
This commit is contained in:
parent
6a6c195db1
commit
5ea6de180b
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue