Function cont_arith_code::distribution::gaussian::lerp

source ·
pub fn lerp(lo: f64, hi: f64, cp: f64) -> f64
Expand description

Does a linear interpolation on the area under the curve of the PDF of the standard normal between two points. Does the computation in log-scale so we’re numerically stable in the tails