Skip to content

Commit

Permalink
fix variable
Browse files Browse the repository at this point in the history
  • Loading branch information
spacehamster87 committed Aug 31, 2023
1 parent cffdd05 commit a2a4b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/frontend/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export function binsFromFootprint(weights, scope, values, numBins) {

const rawBins = new Array(numBins).fill(0)
for (let i = 0; i < values.length; i++)
bins[Math.floor(((values[i] - min) / (max - min)) * numBins)] += scopeWeights ? scopeWeights[i] : 1
rawBins[Math.floor(((values[i] - min) / (max - min)) * numBins)] += scopeWeights ? scopeWeights[i] : 1

const bins = rawBins.map((count, idx) => ({
value: Math.floor(min + ((idx + 1) / numBins) * (max - min)),
Expand Down

0 comments on commit a2a4b2e

Please sign in to comment.