@dra2020/district-analytics 4.3.5 → 4.3.6
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 +1 -1
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -89327,7 +89327,7 @@ exports.scoreCountySplitting = scoreCountySplitting;
|
|
|
89327
89327
|
function countySplitThreshold(nCounties, nDistricts) {
|
|
89328
89328
|
const m = C.allowableSplitsMultiplier();
|
|
89329
89329
|
const worst = C.countySplittingRange()[1];
|
|
89330
|
-
const nAllowableSplits = Math.min(m * (nDistricts - 1));
|
|
89330
|
+
const nAllowableSplits = Math.min(m * (nDistricts - 1), nCounties);
|
|
89331
89331
|
const threshold = ((nAllowableSplits * worst) + ((nCounties - nAllowableSplits) * 1.0)) / nCounties;
|
|
89332
89332
|
return threshold;
|
|
89333
89333
|
}
|