Find sub-windows (weeks) where the MEP defected toward non-home-group
majorities on ≥ share of decisive RCVs.
Skips weeks with fewer than MIN_SUBWINDOW_DECISIVE_VOTES decisive
votes to avoid spurious 100% windows on tiny samples.
Units: the share parameter is a fraction (0–1). The returned
CrossPartyWindow.sharePercent field is converted to a
percentage (0–100) for consumer ergonomics — keep this distinction in
mind when wiring severity classifiers (e.g. severityFromShare expects
percent input).
Find sub-windows (weeks) where the MEP defected toward non-home-group majorities on ≥
shareof decisive RCVs.Skips weeks with fewer than MIN_SUBWINDOW_DECISIVE_VOTES decisive votes to avoid spurious 100% windows on tiny samples.
Units: the
shareparameter is a fraction (0–1). The returned CrossPartyWindow.sharePercent field is converted to a percentage (0–100) for consumer ergonomics — keep this distinction in mind when wiring severity classifiers (e.g.severityFromShareexpects percent input).