diff --git a/static/assets/main.js b/static/assets/main.js index 9725897..a942ce4 100644 --- a/static/assets/main.js +++ b/static/assets/main.js @@ -438,7 +438,7 @@ $(document).ready(function () { // experimental, searching for "homogenous areas" // Range - const rangeScore = Math.max(...scores) - Math.min(...scores); + const rangeScore = maxScore - minScore; const madScore = scores.reduce((sum, score) => sum + Math.abs(score - meanScore), 0) / scores.length; // Mean Absolute Deviation (MAD) const varianceScore = scores.reduce((sum, score) => sum + (score - meanScore) ** 2, 0) / scores.length;// Standard Deviation const stdDevScore = Math.sqrt(varianceScore); @@ -875,4 +875,4 @@ $(document).ready(function () { map.on('zoom', move_or_zoom); map.on('move', move_or_zoom); -}) \ No newline at end of file +})