@Override
  public void validate(UDFParameterValidator validator) throws Exception {
    validator
        .validateInputSeriesNumber(2)
        .validateInputSeriesDataType(0, Type.DOUBLE, Type.FLOAT, Type.INT32, Type.INT64)
        .validateInputSeriesDataType(1, Type.DOUBLE, Type.FLOAT, Type.INT32, Type.INT64)
        .validate(
            x ->
                ((String) x).equalsIgnoreCase(QUOTINENT_RESULT)
                    || ((String) x).equalsIgnoreCase(REMAINDER_RESULT),
            "Result should be 'quotient' or 'remainder'.",
            validator.getParameters().getStringOrDefault("result", QUOTINENT_RESULT));
  }
This function calculates deconvolution of two input series.
library-udf/src/main/java/org/apache/iotdb/library/frequency/UDTFDeconv.java