@dra2020/district-analytics 11.2.0 → 11.3.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/district-analytics.js +4 -6
- package/dist/district-analytics.js.map +1 -1
- package/package.json +3 -3
- package/dist/cli.js +0 -283941
- package/dist/cli.js.map +0 -1
|
@@ -1334,12 +1334,10 @@ function scoreKIWYSICompactness(s, bLog = false) {
|
|
|
1334
1334
|
goodShapes.features.push(f);
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
|
-
const scores = Compactness.scoreShapes(goodShapes);
|
|
1338
|
-
//
|
|
1339
|
-
//
|
|
1340
|
-
return scores.map(n => 100 - Math.round(n));
|
|
1341
|
-
// const avgKIWYSIScore: number = U.avgArray(scores);
|
|
1342
|
-
// return avgKIWYSIScore;
|
|
1337
|
+
const scores = Compactness.scoreShapes(goodShapes, 0 /* Revised */);
|
|
1338
|
+
// Round & invert the scores here at the source vs. later on, higher up.
|
|
1339
|
+
// Raw KIWYSI scores will be 1–100 with smaller better, so map to 1–100 bigger better.
|
|
1340
|
+
return scores.map(n => 100 - Math.round(n) + 1);
|
|
1343
1341
|
}
|
|
1344
1342
|
exports.scoreKIWYSICompactness = scoreKIWYSICompactness;
|
|
1345
1343
|
// SAVE THESE NOTES, IN CASE WE NEED TO REWORK HOW WE PERFORM THESE CALCS.
|