Section 6.3Source:
server/src/analytics/health/coupling/calculateCouplingHealth.tsCoupling Health (23%)
Evaluates total interconnectedness across all files and symbols, applying reciprocal normalization to penalize high average structural degree.
Source:
server/src/analytics/health/coupling/calculateCouplingHealth.tsMathematical Formulation
Coupling health sums both incoming and outgoing edges for every file and symbol node:
Mathematical Definition
1234567totalDegree = sum(fanIn + fanOut) for all files & symbols; averageStructuralDegree = totalDegree / (totalFiles + totalSymbols); // Calibration constant k = 0.5 normalizedRisk = 0.5 * averageStructuralDegree; score = 100 / (1 + normalizedRisk);