function summarize(value, counts) {
  const min = counts.min;
  const max = counts.max;
  const num = counts.values.length;
  if (value < min) {
    // do nothing
  } else if (value >= max) {
    counts.values[num - 1] += 1;
  } else {
    const index = Math.floor((value - min) / counts.delta);
    counts.values[index] += 1;
  }
}
function summarize(value, counts) {
  const min = counts.min;
  const max = counts.max;
  const num = counts.values.length;
  if (value < min) {
    // do nothing
  } else if (value >= max) {
    counts.values[num - 1] += 1;
  } else {
    const index = Math.floor((value - min) / counts.delta);
    counts.values[index] += 1;
  }
}
function summarize ( value , counts ) { const min = counts . min ; const max = counts . max ; const num = counts . values . length ; if ( value < min ) { // do nothing } else if ( value >= max ) { counts . values [ num - 1 ] += 1 ; } else { const index = Math . floor ( ( value - min ) / counts . delta ) ; counts . values [ index ] += 1 ; } }
Summarize values for a histogram.
@param {numver} value A VGI value.
@param {Object} counts An object for keeping track of VGI counts.
Summarize values for a histogram .
summarize the value