code: function gaussianKernel1D(s, n) {
      if (typeof n !== 'number') n = 7;
      var kernel = new Float64Array(n),
          halfN = Math.floor(n * 0.5),
          odd = n % 2,
          i;
      if (!s || !n) return kernel;
      for (i = 0; i <= halfN; i++) {
          kernel[i] = gauss(s * (i - halfN - odd * 0.5), s);
      }
      for (; i < n; i++) {
          kernel[i] = kernel[n - 1 - i];
      }
      return kernel;
  }
docs: Generate a Gaussian kernel.
  
  Returns a kernel of size N approximating a 1D Gaussian distribution with
  standard deviation S.