///Polynomial regression of the target data with m basis functions.
///Returns the regression function which can be used to make predictions
///about future data.
///
Polynomial regression of the target data with m basis functions.
Returns the regression function which can be used to make predictions
about future data.
Polynomial regression of the target data with m basis functions . Returns the regression function which can be used to make predictions about future data .
pub fn polynomial_regression<T>(data: &T, m: u8) -> Box<Fn(Float) -> Float>
where
    T: ::std::fmt::Debug,
{
    println!("{:?}", data);
    //linear_basis_regression(&data,0,|x| 5.0);
    Box::new(|x| x)
}
pub fn polynomial_regression < T > ( data : & T , m : u8 ) -> Box < Fn ( Float ) -> Float > where T : :: std :: fmt :: Debug , { println ! ( " " data ) ; //linear_basis_regression(&data,0,|x| 5.0); Box :: new ( | x | x ) }
Polynomial regression of the target data with m basis functions.
Polynomial regression of the target data with m basis functions .
data
&T
m
u8