[][src]Struct lfa::VectorFunction

pub struct VectorFunction {
    pub weights: Weights,
}

Weights-Features evaluator with Vec<f64> output.

Fields

weights: Weights

Approximation weights.

Methods

impl VectorFunction[src]

pub fn new(weights: Weights) -> Self[src]

Construct a new approximation with specified weights.

pub fn zeros(n_features: usize, n_outputs: usize) -> Self[src]

Construct a new approximation with zeroed weights.

Trait Implementations

impl Parameterised for VectorFunction[src]

impl Approximator for VectorFunction[src]

type Output = Vec<f64>

The type of value being approximated.

impl PartialEq<VectorFunction> for VectorFunction[src]

impl Clone for VectorFunction[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for VectorFunction[src]

Auto Trait Implementations

Blanket Implementations

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

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

Evaluate the index-th output value.

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

Update the index-th output value.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]