@Override
  public void validate(UDFParameterValidator validator) throws Exception {
    validator
        .validateInputSeriesNumber(1)
        .validateInputSeriesDataType(0, Type.INT32, Type.INT64, Type.FLOAT, Type.DOUBLE)
        .validate(
            count -> (int) count > 0,
            "parameter $count$ should be larger than 0",
            validator.getParameters().getIntOrDefault("count", 1))
        .validate(
            params -> (double) params[0] <= (double) params[1],
            "parameter $end$ should be larger than or equal to $start$",
            validator.getParameters().getDoubleOrDefault("min", -Double.MAX_VALUE),
            validator.getParameters().getDoubleOrDefault("max", Double.MAX_VALUE));
  }
This function is used to calculate the distribution histogram of a single column of numerical
data.
library-udf/src/main/java/org/apache/iotdb/library/dprofile/UDTFHistogram.java