docs: @Override
    public double getWeight(double distance, double max, double stddev) {
      if(max <= 0) {
        return 1.0;
      }
      double relativedistance = distance / max;
      // the scaling was picked such that getWeight(a,a,0) is 0.1
      // since erfc(1.1630871536766736) == 1.0
      return NormalDistribution.erfc(1.1630871536766736 * relativedistance);
    }