Function std_dev::regression::ols::polynomial

source ·
pub fn polynomial(
    predictors: impl Iterator<Item = f64> + Clone,
    outcomes: impl Iterator<Item = f64>,
    len: usize,
    degree: usize
) -> PolynomialCoefficients
Available on crate features regression and ols only.
Expand description

Panics

Panics if either x or y don’t have the length len.

Also panics if degree + 1 > len.