Riksdagsmonitor Intelligence Platform - v0.7.19
    Preparing search index...
    • Normalize CIAContext so defectionProbability is in [0, 1].

      risk-analysis.ts multiplies it by 100, so out-of-range values can explode scores. Expected input formats:

      • (0, 1] — already a proper probability fraction; kept as-is. Note: exactly 1.0 is treated as 100% (not as 1% whole-percent).
      • (1, ∞) — treated as a whole-percent (loadCIAContext returns min 5, e.g. 50 means 50% → normalized to 0.5); clamped to 1.
      • Non-finite or ≤ 0 — coerced to 0 (no defection risk).

      Parameters

      Returns CIAContext