@dra2020/district-analytics 5.7.1 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +3 -2
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -89884,9 +89884,10 @@ function scoreImpact(rawUE, Vf, Sf, N) {
|
|
|
89884
89884
|
}
|
|
89885
89885
|
}
|
|
89886
89886
|
exports.scoreImpact = scoreImpact;
|
|
89887
|
+
const avgSVError = 0.02;
|
|
89887
89888
|
function isAntimajoritarian(Vf, Sf) {
|
|
89888
|
-
const bDem = ((Vf < 0.5) && (Sf > 0.5)) ? true : false;
|
|
89889
|
-
const bRep = (((1 - Vf) < 0.5) && ((1 - Sf) > 0.5)) ? true : false;
|
|
89889
|
+
const bDem = ((Vf < (0.5 - avgSVError)) && (Sf > 0.5)) ? true : false;
|
|
89890
|
+
const bRep = (((1 - Vf) < (0.5 - avgSVError)) && ((1 - Sf) > 0.5)) ? true : false;
|
|
89890
89891
|
return bDem || bRep;
|
|
89891
89892
|
}
|
|
89892
89893
|
exports.isAntimajoritarian = isAntimajoritarian;
|