docs: @Override
    public double getWeight(double distance, double max, double stddev) {
      if(stddev <= 0) {
        return 1;
      }
      double normdistance = distance / stddev;
      return scaling * FastMath.exp(-.5 * normdistance * normdistance) / stddev;
    }