Function linear_weighting

Source
pub fn linear_weighting(y1: f64, y2: f64, x1_diff: f64) -> f64