@Override
  public void validate(UDFParameterValidator validator) throws Exception {
    validator
        .validateInputSeriesNumber(1)
        .validateInputSeriesDataType(0, Type.DOUBLE, Type.FLOAT, Type.INT32, Type.INT64)
        .validateRequiredAttribute(WPASS_PARAM)
        .validate(
            x -> (double) x > 0 && (double) x < 1,
            "Wpass should be within (0,1).",
            validator.getParameters().getDouble(WPASS_PARAM));
  }
This function filters high frequency components.
library-udf/src/main/java/org/apache/iotdb/library/frequency/UDTFHighPass.java