Read the equation
The example multiplies staffing, market, incumbency, and past-performance features by weights 0.35, 0.30, 0.20, and 0.15. The terms sum exactly to 0.63 with the stated inputs. It checks the implementation’s score arithmetic for that constructed case.
Terms & definitions
The recovered passage does not supply a separate symbol table. Read the source context for the notation used in this version; familiar letters may carry different meanings in other builds.
How it works
Read the definition from its right-hand expression to the quantity on the left. Its surrounding source records the intended input, state, or parameter context. Where the source leaves an operation unspecified, this page preserves that gap.
Assumptions & limits
Source recovery establishes that the expression appears in this record. Its mathematical validity, implementation behavior, and interpretation must be assessed separately. See the linked source and research notes for the checks available for this version.
Original context
Read the surrounding source passage
if !score.Equal(dec("1")) {
t.Fatalf("all factors at 1.0 must score exactly 1.0, got %s", score)
}
if len(trace) != 4 {
t.Fatalf("the trace must carry all four factors, got %d", len(trace))
}
// a specific mix: staffing 0.8, market 0.5, incumbency 1.0, past 0.0
// = 0.35*0.8 + 0.30*0.5 + 0.20*1.0 + 0.15*0.0 = 0.28 + 0.15 + 0.20 + 0 = 0.63
mix := []captureFactor{
{factorStaffingReadiness, dec("0.8"), ""},
{factorMarketWinLikelihood, dec("0.5"), ""},
{factorIncumbencyPosition, dec("1.0"), ""},
{factorPastPerformance, dec("0.0"), ""},
}
got, _ := scoreCaptureReadiness(captureWeights(), mix)
if !got.Equal(dec("0.63")) {
t.Fatalf("the weighted average must be exactly 0.63, got %s", got)
}Exact original notation
a specific mix: staffing 0.8, market 0.5, incumbency 1.0, past 0.0 = 0.35*0.8 + 0.30*0.5 + 0.20*1.0 + 0.15*0.0 = 0.28 + 0.15 + 0.20 + 0 = 0.63