Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix gaussian blur that was being done wrong

  • Loading branch information...
commit 6f2bd49be13106fad65d8fad14cf55617c65ad54 1 parent 92512f6
mpd authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  heatmap.js
3  heatmap.js
@@ -140,7 +140,8 @@ $(function () {
140 140
141 141 // multiply by reciprocal of sum of the gaussian kernel
142 142 // or divide by sum, as we do here.
143   - smoothedHeat[key] = value + ((value * (result / 25)) / 159);
  143 + result /= 159;
  144 + smoothedHeat[key] = result;
144 145 });
145 146
146 147 return smoothedHeat;

0 comments on commit 6f2bd49

Please sign in to comment.
Something went wrong with that request. Please try again.