pub fn update<I>(&mut self, input: I, error: f64) -> Result<()>
    where
        B: basis::Basis<I, Value = Features>,
        O: optim::Optimiser,
    {
        self.basis.project(input).and_then(|ref b| {
            self.optimiser
                .step_scaled(&mut self.weights.view_mut(), b, error)
        })
    }
/// Update the function approximator for a given `input` and `error`.
Update the function approximator for a given `input` and `error`.
Update the function approximator for a given ` input ` and ` error ` .
pub fn update<I>(&mut self, input: I, error: f64) -> Result<()>
    where
        B: basis::Basis<I, Value = Features>,
        O: optim::Optimiser,
    {
        self.basis.project(input).and_then(|ref b| {
            self.optimiser
                .step_scaled(&mut self.weights.view_mut(), b, error)
        })
    }
pub fn update < I > ( & mut self , input : I , error : f64 ) -> Result < ( ) > where B : basis :: Basis < I , Value = Features > , O : optim :: Optimiser , { self . basis . project ( input ) . and_then ( | ref b | { self . optimiser . step_scaled ( & mut self . weights . view_mut ( ) , b , error ) } ) }
Update the function approximator for a given `input` and `error`.
Update the function approximator for a given ` input ` and ` error ` .
&mut self
input
I
error
f64
&mut self
input
I
error
f64