@dra2020/district-analytics 4.3.1 → 4.3.2
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 -0
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -90063,6 +90063,7 @@ function scorePopulationDeviation(rawValue, bLegislative) {
|
|
|
90063
90063
|
const _normalizer = new normalize_1.Normalizer(rawValue);
|
|
90064
90064
|
// Raw range in not inverted (i.e., smaller is better)
|
|
90065
90065
|
const range = C.popdevRange(bLegislative);
|
|
90066
|
+
_normalizer.clip(0.0, 1.0); // Handle deviations bigger than a whole district
|
|
90066
90067
|
_normalizer.invert();
|
|
90067
90068
|
_normalizer.clip(1.0 - range[C.BEG], 1.0 - range[C.END]);
|
|
90068
90069
|
_normalizer.unitize(1.0 - range[C.BEG], 1.0 - range[C.END]);
|