[][src]Trait lfa::VectorApproximator

pub trait VectorApproximator: Approximator<Output = Vec<f64>> {
    fn evaluate_index(&self, features: &Features, index: usize) -> Result<f64> { ... }
fn update_index<O: Optimiser>(
        &mut self,
        opt: &mut O,
        features: &Features,
        index: usize,
        error: f64
    ) -> Result<()> { ... } }

Approximators with an Vec<f64> output.

Provided methods

fn evaluate_index(&self, features: &Features, index: usize) -> Result<f64>

Evaluate the index-th output value.

fn update_index<O: Optimiser>(
    &mut self,
    opt: &mut O,
    features: &Features,
    index: usize,
    error: f64
) -> Result<()>

Update the index-th output value.

Loading content...

Implementors

impl<T: Approximator<Output = Vec<f64>>> VectorApproximator for T[src]

Loading content...