@Override
  public void validate(UDFParameterValidator validator) throws Exception {
    validator
        .validateInputSeriesNumber(1)
        .validateInputSeriesDataType(0, Type.DOUBLE, Type.FLOAT, Type.INT32, Type.INT64)
        .validate(
            x -> (int) x >= 10,
            "minlen should be an integer greater than or equal to 10.",
            validator.getParameters().getIntOrDefault("minlen", 10));
  }
This function is used to detect missing anomalies.
library-udf/src/main/java/org/apache/iotdb/library/anomaly/UDTFMissDetect.java