a numerically stable lerp is unbelievably complex but we are *approximating* the quantile, so let's keep it simple
| 37 | // a numerically stable lerp is unbelievably complex |
| 38 | // but we are *approximating* the quantile, so let's keep it simple |
| 39 | double Lerp(double a, double b, double t) { return a + t * (b - a); } |
| 40 | |
| 41 | // histogram bin |
| 42 | struct Centroid { |