code: function alterneigh(radius, i, b, g, r) {
      var lo = Math.abs(i - radius);
      var hi = Math.min(i + radius, netsize);
  
      var j = i + 1;
      var k = i - 1;
      var m = 1;
  
      var p, a;
      while ((j < hi) || (k > lo)) {
        a = radpower[m++];
  
        if (j < hi) {
          p = network[j++];
          p[0] -= (a * (p[0] - b)) / alpharadbias;
          p[1] -= (a * (p[1] - g)) / alpharadbias;
          p[2] -= (a * (p[2] - r)) / alpharadbias;
        }
  
        if (k > lo) {
          p = network[k--];
          p[0] -= (a * (p[0] - b)) / alpharadbias;
          p[1] -= (a * (p[1] - g)) / alpharadbias;
          p[2] -= (a * (p[2] - r)) / alpharadbias;
        }
      }
    }
docs: /*
  Private Method: alterneigh
  
  moves neurons in *radius* around index *i* towards biased (b,g,r) by factor *alpha*