twitter / AnomalyDetection

Anomaly Detection with R
GNU General Public License v3.0
3.57k stars 779 forks source link

Possible bug in alpha parameter input check? #80

Open chezihp opened 7 years ago

chezihp commented 7 years ago

Seems like a bug: https://github.com/twitter/AnomalyDetection/blob/master/R/ts_anom_detection.R#L110

if(!(0.01 <= alpha || alpha <= 0.1)) should be: if(!(0.01 <= alpha && alpha <= 0.1))