pub fn linear_weighting(y1: f64, y2: f64, x1_diff: f64) -> f64
Expand description
Performs linear interpolation using a weight factor.
Given ordinates y1
and y2
and a weight x1_diff
, computes the
interpolated value using the formula: y1 + x1_diff * (y2 - y1)
.