docs: public static int discretize(double value, double min, double max, int binCount) {
          int discreteValue = (int) (binCount * normalize(value, min, max));
          return clamp(discreteValue, 0, binCount - 1);
      }