- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for fairProp (0.11 sec)
-
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/conc_alloc.go
} // Now we know the solution is a unique fairProp in [lbRange.min, ubRange.max]. // See if the solution does not run into any bounds. fairProp := requiredSumF / targetSum if lbRange.max <= fairProp && fairProp <= ubRange.min { // no bounds matter for idx := range classes { ans[idx] = relativeItems[idx].target * fairProp } return ans, fairProp, nil } // Sadly, some bounds matter.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 9.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/conc_alloc_test.go
} rd := f64RelDiff(requiredSumF, actualSumF) if rd > fpSlack { t.Fatalf("For requiredSum=%v, %s classes=%#+v got solution %v, %v which has sum %v", requiredSum, style, classes, allocs, fairProp, actualSumF) } for idx, item := range classes { target := math.Max(item.target, MinTarget) alloc := fairProp * target if alloc <= item.lowerBound {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 18:17:27 UTC 2022 - 5.3K bytes - Viewed (0)