INT-1496: start optimistically with success rate 100%
This commit is contained in:
@@ -92,7 +92,8 @@ public class ExponentialMovingAverageRatio {
|
||||
public double getMean() {
|
||||
int count = cumulative.getCount();
|
||||
if (count == 0) {
|
||||
return 0;
|
||||
// Optimistic to start: success rate is 100%
|
||||
return 1;
|
||||
}
|
||||
long t = System.currentTimeMillis();
|
||||
double alpha = Math.exp((t0 - t) * lapse);
|
||||
|
||||
Reference in New Issue
Block a user