You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever the interval.expectedVal = 0.0f then, no matter what is the value of interval.actualVal we always get percentageDeviation = 2147483647; // max value that can fit in int(32-bit signed integer)
Is it the expected behaviour or do we need to handle this case ?
The text was updated successfully, but these errors were encountered:
FYI I'm referring to : https://github.com/yahoo/sherlock/blob/master/src/main/java/com/yahoo/sherlock/model/AnomalyReport.java#L272
int percentageDeviation = (int) (((interval.actualVal - interval.expectedVal) / interval.expectedVal) * 100);
Whenever the
interval.expectedVal = 0.0f
then, no matter what is the value ofinterval.actualVal
we always getpercentageDeviation = 2147483647; // max value that can fit in int(32-bit signed integer)
Is it the expected behaviour or do we need to handle this case ?
The text was updated successfully, but these errors were encountered: