code: function(encoded, dimension, opt_factor) {
        var factor = opt_factor || 1e5;
        var d;
  
        var lastNumbers = new Array(dimension);
        for (d = 0; d < dimension; ++d) {
          lastNumbers[d] = 0;
        }
  
        var numbers = this.decodeFloats(encoded, factor);
  
        var numbersLength = numbers.length;
        for (var i = 0; i < numbersLength;) {
          for (d = 0; d < dimension; ++d, ++i) {
            lastNumbers[d] += numbers[i];
  
            numbers[i] = lastNumbers[d];
          }
        }
  
        return numbers;
      }
docs: APIMethod: decodeDeltas
  Decode a list of n-dimensional points from an encoded string
  
  Parameters:
  encoded - {string} An encoded string.
  dimension - {number} The dimension of the points in the encoded string.
  opt_factor - {number=} The factor by which the resulting numbers will
  be divided.
  
  Returns:
  {Array.<number>} A list of n-dimensional points.