Skip to main content

polynomial_regression

Function polynomial_regression 

Source
pub fn polynomial_regression(
    x: &[f64],
    y: &[f64],
    n: usize,
    degree: usize,
) -> Result<RegressionSpline, LearningError>
Expand description

Convenience: degree-degree polynomial regression (a spline with no knots).