We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 74ebc99 + 459552b commit 4eb6137Copy full SHA for 4eb6137
1 file changed
R/detect_anoms.R
@@ -87,7 +87,7 @@ detect_anoms <- function(data, k = 0.49, alpha = 0.05, num_obs_per_period = NULL
87
88
# protect against constant time series
89
data_sigma <- func_sigma(data[[2L]])
90
- if(data_sigma == 0)
+ if(is.na(data_sigma) || data_sigma == 0)
91
break
92
93
ares <- ares/data_sigma
0 commit comments