code: @Override
      public double getMean() {
          if (values.length == 0) {
              return 0;
          }
  
          double sum = 0;
          for (long value : values) {
              sum += value;
          }
          return sum / values.length;
      }
docs: Returns the arithmetic mean of the values in the snapshot.
  
  @return the arithmetic mean