public static double mean(List<Double> data) {
    return sum(data) / data.size();
  }
calculate mean of list

@param data need to calculate list
@return mean of list
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/MathUtils.java