code: public AttributeVector summary() {
          Attribute attr = new NumericAttribute(attribute.getName() + " Summary");
          String[] names = {"min", "q1", "median", "mean", "q3", "max"};
  
          double[] stat = new double[6];
          stat[0] = Math.min(vector);
          stat[1] = Math.q1(vector);
          stat[2] = Math.median(vector);
          stat[3] = Math.mean(vector);
          stat[4] = Math.q3(vector);
          stat[5] = Math.max(vector);
  
          return new AttributeVector(attr, stat, names);
      }
docs: Returns statistic summary.