@Override
  public void validate(UDFParameterValidator validator) throws Exception {
    validator
        .validateInputSeriesNumber(1)
        .validateInputSeriesDataType(0, Type.FLOAT, Type.DOUBLE, Type.INT32, Type.INT64)
        .validate(
            x -> (double) x > 0,
            "Parameter $sigma$ should be larger than 0.",
            validator.getParameters().getDoubleOrDefault("sigma", 1.0))
        .validate(
            params -> (double) params[0] < (double) params[1],
            "parameter $minSpeed$ should be smaller than $maxSpeed$.",
            validator.getParameters().getDoubleOrDefault("minSpeed", -1),
            validator.getParameters().getDoubleOrDefault("maxSpeed", 1));
  }
This function is used to repair the value of the time series.
library-udf/src/main/java/org/apache/iotdb/library/drepair/UDTFValueRepair.java