code: public static double avg( List<LasRecord> points, VALUETYPE valueType ) {
          double sum = 0;
          int count = 0;
          for( LasRecord lasRecord : points ) {
              sum = sum + getValue(valueType, lasRecord);
              count++;
          }
          double avg = sum / count;
          return avg;
      }
docs: Calculate the avg of a value in a list of {@link LasRecord}s.
  
  @param points the records.
  @param valueType the value to consider.
  @return the avg.