Read the equation
This relation defines confidence in the source section “confidence · confidence”. It specifies the displayed relationship between the named quantities or parameters. Its interpretation depends on the source’s stated variables and conditions; this record does not assign an unprovided physical or cognitive meaning to them.
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 confidence as the quantity being defined or updated by this relation.
Substitute the source-defined variables or recorded values and follow the displayed arithmetic and indexing exactly.
Use this version’s variable definitions and update order. The same symbol may be assigned a different meaning in another build.
Assumptions & limits
This source expression was recovered from the pinned code revision. Its presence does not establish that the associated program was built, run, or scientifically validated.
Original context
Read the surrounding source passage
package staffing
import "github.com/shopspring/decimal"
// Confidence is a DETERMINISTIC transparency aid in [0,1], never a probability and never an input to a
// decision. It blends three observable, explainable factors:
//
// confidence = wFit * (total / 100) + wProvenance * provenanceScore + wCompleteness * completeness
//
// fit is how far the engine score is above zero, provenanceScore reflects how the clearance was
// established (a self reported clearance is weaker evidence than continuous vetting), and completeness is
// the fraction of profile sections present. All three are bounded in [0,1] and the weights sum to 1, so
// the result is bounded in [0,1]. It is computed with decimal, never float, and rounded to 4 places to
// match the numeric(5,4) column.
func Confidence(cfg Config, c ScoredCandidate) decimal.Decimal {
fit := c.Total.Div(decimal.NewFromInt(100))
prov, ok := provenanceScore[c.Provenance]
if !ok {Exact original notation
confidence = wFit * (total / 100) + wProvenance * provenanceScore + wCompleteness * completeness