Skip to content

Commit 1aa285d

Browse files
author
LuizFCDuarte
committed
🐛 Fix numerical error on detectOutliers
1 parent 9ff0282 commit 1aa285d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/sarima.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1938,7 +1938,7 @@ function detectOutliers(
19381938
)
19391939
end
19401940
fit!(model)
1941-
residuals = model.ϵ
1941+
residuals = map(x -> abs(x) < 1e-10 ? 0.0 : x, model.ϵ)
19421942

19431943
# Detect outliers
19441944
outliers = identifyOutliers(residuals)

0 commit comments

Comments
 (0)