@Override
  public void transform(Row row, PointCollector collector) throws Exception {
    if (compute.equalsIgnoreCase(STREAM_COMPUTE) && max > min) {
      collector.putDouble(row.getTime(), (Util.getValueAsDouble(row) - min) / (max - min));
    } else if (compute.equalsIgnoreCase(BATCH_COMPUTE)) {
      double v = Util.getValueAsDouble(row);
      if (Double.isFinite(v)) {
        value.add(v);
      }
      timestamp.add(row.getTime());
      if (flag) {
        min = v;
        max = v;
        flag = false;
      } else {
        if (v > max) {
          max = v;
        } else if (v < min) {
          min = v;
        }
      }
    }
  }
This function is used to standardize the input series with min-max.
library-udf/src/main/java/org/apache/iotdb/library/dprofile/UDTFMinMax.java