Skip to main content

linear_extrapolate

Function linear_extrapolate 

Source
pub fn linear_extrapolate(noise_factors: &[f64], values: &[f64]) -> f64
Expand description

Linear extrapolation to x = 0.

Fits y = a*x + b via least-squares and returns b (the y-intercept).