Browse files

fix gaussian blur that was being done wrong

  • Loading branch information...
1 parent 92512f6 commit 6f2bd49be13106fad65d8fad14cf55617c65ad54 mpd committed May 18, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 heatmap.js
View
3 heatmap.js
@@ -140,7 +140,8 @@ $(function () {
// multiply by reciprocal of sum of the gaussian kernel
// or divide by sum, as we do here.
- smoothedHeat[key] = value + ((value * (result / 25)) / 159);
+ result /= 159;
+ smoothedHeat[key] = result;
});
return smoothedHeat;

0 comments on commit 6f2bd49

Please sign in to comment.