[][src]Struct lfa::LFA

pub struct LFA<P, E> {
    pub projector: P,
    pub evaluator: E,
}

Linear function approximator.

Fields

projector: Pevaluator: E

Methods

impl<P: Space> LFA<P, ScalarFunction>[src]

pub fn scalar(projector: P) -> Self[src]

impl<P: Space> LFA<P, PairFunction>[src]

pub fn pair(projector: P) -> Self[src]

impl<P: Space> LFA<P, TripleFunction>[src]

pub fn triple(projector: P) -> Self[src]

impl<P, E> LFA<P, E>[src]

pub fn new(projector: P, evaluator: E) -> Self[src]

impl<P: Space> LFA<P, VectorFunction>[src]

pub fn vector(projector: P, n_outputs: usize) -> Self[src]

Trait Implementations

impl<I: ?Sized, P, E> Approximator<I> for LFA<P, E> where
    P: Projector<I>,
    E: Approximator<Projection>, 
[src]

type Value = E::Value

impl<P, E: Parameterised> Parameterised for LFA<P, E>[src]

impl<P: Space> From<P> for LFA<P, ScalarFunction>[src]

impl<P: Space> From<P> for LFA<P, PairFunction>[src]

impl<P: Space> From<P> for LFA<P, TripleFunction>[src]

impl<P: Clone, E: Clone> Clone for LFA<P, E>[src]

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

Performs copy-assignment from source. Read more

impl<P: Debug, E: Debug> Debug for LFA<P, E>[src]

impl<'de, P, E> Deserialize<'de> for LFA<P, E> where
    P: Deserialize<'de>,
    E: Deserialize<'de>, 
[src]

impl<P, E> Serialize for LFA<P, E> where
    P: Serialize,
    E: Serialize
[src]

Auto Trait Implementations

impl<P, E> Send for LFA<P, E> where
    E: Send,
    P: Send

impl<P, E> Sync for LFA<P, E> where
    E: Sync,
    P: Sync

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]