Without this, it falls back to the default binary search algorithm, which is not as accurate. For example: using the binary search Uniform::new(0.0, 10.0).unwrap().inverse_cdf(0.5) yeilds 5.0000457763671875, whereas the new specialization yeilds 5.0.
Without this, it falls back to the default binary search algorithm, which is not as accurate. For example: using the binary search
Uniform::new(0.0, 10.0).unwrap().inverse_cdf(0.5)
yeilds5.0000457763671875
, whereas the new specialization yeilds5.0
.