Skip to content

Commit 4eb6137

Browse files
authored
Merge pull request #4 from exploratory-io/yy_merge_exi
merge exi
2 parents 74ebc99 + 459552b commit 4eb6137

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/detect_anoms.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ detect_anoms <- function(data, k = 0.49, alpha = 0.05, num_obs_per_period = NULL
8787

8888
# protect against constant time series
8989
data_sigma <- func_sigma(data[[2L]])
90-
if(data_sigma == 0)
90+
if(is.na(data_sigma) || data_sigma == 0)
9191
break
9292

9393
ares <- ares/data_sigma

0 commit comments

Comments
 (0)