@Override
  public void beforeStart(UDFParameters parameters, UDTFConfigurations configurations)
      throws Exception {
    configurations
        .setAccessStrategy(new SlidingSizeWindowAccessStrategy(Integer.MAX_VALUE))
        .setOutputDataType(parameters.getDataType(0));
    this.len = parameters.getDoubleOrDefault("len", 5);
    this.threshold = parameters.getDoubleOrDefault("threshold", 0.4);
  }
The function is used to filter anomalies of a numeric time series based on two-sided window
detection.
library-udf/src/main/java/org/apache/iotdb/library/anomaly/UDTFTwoSidedFilter.java