Function ndarray_glm::utility::one_pad[][src]

pub fn one_pad<T>(data: ArrayView2<'_, T>) -> Array2<T> where
    T: Copy + One
Expand description

Prepend the input with a column of ones. Used to incorporate a constant intercept term in a regression.