code: function getModes(data, bucketCount, min, max) {
      var buckets = bucketNumbersLinearly(data, bucketCount, min, max),
          maxLen = 0,
          modes = [];
      for (var i = 0, l = buckets.length; i < l; i++) {
          if (buckets[i].length > maxLen) {
              maxLen = buckets[i].length;
              modes = [Math.floor(((i + 0.5) / l) * (max - min) + min)];
          }
          else if (buckets[i].length === maxLen) {
              modes.push(Math.floor(((i + 0.5) / l) * (max - min) + min));
          }
      }
      return modes;
  }
docs: Get the bucketed mode(s) in a data set.
  
  @param {Number[]} data
  The data set from which the modes should be retrieved.
  @param {Number} bucketCount
  The number of buckets to use.
  @param {Number} min
  The minimum allowed data value.
  @param {Number} max
  The maximum allowed data value.
  
  @return {Number[]}
  An array containing the bucketed mode(s).