@Override
  public void terminate(PointCollector collector) throws Exception {
    if (compute.equalsIgnoreCase(BATCH_COMPUTE) && max > min) {
      for (int i = 0; i < value.size(); i++) {
        collector.putDouble(timestamp.get(i), (value.get(i) - min) / (max - min));
      }
    }
  }
This function is used to standardize the input series with min-max.
library-udf/src/main/java/org/apache/iotdb/library/dprofile/UDTFMinMax.java