@Override
  public void transform(Row row, PointCollector collector) throws Exception {
    double value = Util.getValueAsDouble(row);
    if (Double.isFinite(value)) {
      int id = Math.min(Math.max((int) Math.floor((value - start) / gap), 0), count - 1);
      bucket[id]++;
    }
  }
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