lib/in.js
function avg(line, params) {

  var event = params[0];
  var what = params[1];
  var r = Number(line[what]);
  event.what += r;
  ++event.total;
  if (r > event.max) {
    event.max = r;
  }
  if (r < event.min) {
    event.min = r;
  }
  return event;
}
function avg(line, params) {

  var event = params[0];
  var what = params[1];
  var r = Number(line[what]);
  event.what += r;
  ++event.total;
  if (r > event.max) {
    event.max = r;
  }
  if (r < event.min) {
    event.min = r;
  }
  return event;
}
function avg ( line , params ) { var event = params [ 0 ] ; var what = params [ 1 ] ; var r = Number ( line [ what ] ) ; event . what += r ; ++ event . total ; if ( r > event . max ) { event . max = r ; } if ( r < event . min ) { event . min = r ; } return event ; }
input for average

@function avg
@param {String} line - line read
@param {Array} output - object stored
@return {Object}
input for average