@Override
  public void beforeStart(UDFParameters parameters, UDTFConfigurations configurations)
      throws Exception {
    configurations
        .setAccessStrategy(new RowByRowAccessStrategy())
        .setOutputDataType(parameters.getDataType(0));
    this.lowerBound = parameters.getDouble("lower_bound");
    this.upperBound = parameters.getDouble("upper_bound");
    this.dataType = parameters.getDataType(0);
  }
This function is used to detect range anomaly of time series.
library-udf/src/main/java/org/apache/iotdb/library/anomaly/UDTFRange.java