///Calculation of regression polynom via l2 norm. m=number of basis functions.
///
Calculation of regression polynom via l2 norm. m=number of basis functions.
Calculation of regression polynom via l2 norm . m = number of basis functions .
pub fn linear_basis_regression<T>(data: &T, m: u8, basis: &Fn(Float) -> Float) -> Float {
    let Phi = DMat::from_fn(4, 3, |r, c| if r == c { 1.0 } else { 0.0 });
    5.0
}
pub fn linear_basis_regression < T > ( data : & T , m : u8 , basis : & Fn ( Float ) -> Float ) -> Float { let Phi = DMat :: from_fn ( 4 , 3 , | r , c | if r == c { 1.0 } else { 0.0 } ) ; 5.0 }
Calculation of regression polynom via l2 norm.
Calculation of regression polynom via l2 norm .
data
&T
m
u8
basis
&Fn(Float) -> Float