@Override
  public void validate(UDFParameterValidator validator) throws Exception {
    validator
        .validateInputSeriesNumber(1)
        .validateInputSeriesDataType(0, Type.INT32, Type.INT64, Type.FLOAT, Type.DOUBLE)
        .validate(
            x ->
                ((String) x).equalsIgnoreCase(BATCH_COMPUTE)
                    || ((String) x).equalsIgnoreCase(STREAM_COMPUTE),
            "Parameter \"compute\" is illegal. Please use \"batch\" (for default) or \"stream\".",
            validator.getParameters().getStringOrDefault("compute", BATCH_COMPUTE))
        .validate(
            params -> (double) params[0] < (double) params[1],
            "parameter $min$ should be smaller than $max$.",
            validator.getParameters().getDoubleOrDefault("min", -Double.MAX_VALUE),
            validator.getParameters().getDoubleOrDefault("max", Double.MAX_VALUE));
  }
This function is used to standardize the input series with min-max.
library-udf/src/main/java/org/apache/iotdb/library/dprofile/UDTFMinMax.java