Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
do-me authored Nov 17, 2024
1 parent ce945a4 commit dea7818
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/assets/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -875,4 +875,4 @@ $(document).ready(function () {
map.on('zoom', move_or_zoom);
map.on('move', move_or_zoom);

})
})

0 comments on commit dea7818

Please sign in to comment.