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.
1 parent 1553b7d commit b35f8dbCopy full SHA for b35f8db
pkg/gcc/kalman.go
@@ -80,8 +80,9 @@ func (k *kalman) updateEstimate(measurement time.Duration) time.Duration {
80
root3 := 3 * root
81
if zms > root3 {
82
k.measurementUncertainty = math.Max(alpha*k.measurementUncertainty+(1-alpha)*root3*root3, 1)
83
+ } else {
84
+ k.measurementUncertainty = math.Max(alpha*k.measurementUncertainty+(1-alpha)*zms*zms, 1)
85
}
- k.measurementUncertainty = math.Max(alpha*k.measurementUncertainty+(1-alpha)*zms*zms, 1)
86
87
88
estimateUncertainty := k.estimateError + k.processUncertainty
0 commit comments