Skip to content

Commit 54c063d

Browse files
authored
Fixed Lint errors
1 parent 0603815 commit 54c063d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

app/engine/utils/MovingWindowRegressor.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,18 @@ export function createMovingRegressor (bandwith) {
134134
function expectedX (position = 0) {
135135
const solutions = projectY(position, quadraticTheilSenRegressor.Y.get(position))
136136
switch (true) {
137-
case (solutions.length === 0):
138-
return quadraticTheilSenRegressor.X.get(position)
139-
case (solutions.length === 1):
140-
return solutions[0]
141-
case (solutions.length === 2):
142-
if (Math.abs(solutions[0] - quadraticTheilSenRegressor.X.get(position)) < Math.abs(solutions[1] - quadraticTheilSenRegressor.X.get(position))) {
143-
return solutions[0]
144-
} else {
145-
return solutions[1]
146-
}
147-
default:
148-
return quadraticTheilSenRegressor.X.get(position)
137+
case (solutions.length === 0):
138+
return quadraticTheilSenRegressor.X.get(position)
139+
case (solutions.length === 1):
140+
return solutions[0]
141+
case (solutions.length === 2):
142+
if (Math.abs(solutions[0] - quadraticTheilSenRegressor.X.get(position)) < Math.abs(solutions[1] - quadraticTheilSenRegressor.X.get(position))) {
143+
return solutions[0]
144+
} else {
145+
return solutions[1]
146+
}
147+
default:
148+
return quadraticTheilSenRegressor.X.get(position)
149149
}
150150
}
151151

0 commit comments

Comments
 (0)