code: @Override
      public void asBytes(ByteBuffer buf) {
          buf.putInt(VERBOSE_ENCODING);
          buf.putDouble(min);
          buf.putDouble(max);
          buf.putDouble((float) compression());
          buf.putInt(summary.size());
          for (Centroid centroid : summary) {
              buf.putDouble(centroid.mean());
          }
  
          for (Centroid centroid : summary) {
              buf.putInt(centroid.count());
          }
      }
docs: Outputs a histogram as bytes using a particularly cheesy encoding.