1 2 3 4 5 6 7 8 9 10 11
#[inline] pub fn esl_exp_surv(x: f64, mu: f64, lambda: f64) -> f64 { if x < mu { return 1.0; } (-lambda * (x - mu)).exp() }