[][src]Struct lfa::TripleFunction

pub struct TripleFunction {
    pub weights: Weights,
}

Weights-Features evaluator with [f64; 3] output.

Fields

weights: Weights

Approximation weights.

Methods

impl TripleFunction[src]

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

Construct a new approximation with specified weights.

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

Construct a new approximation with zeroed weights.

Trait Implementations

impl Parameterised for TripleFunction[src]

impl Approximator for TripleFunction[src]

type Output = [f64; 3]

The type of value being approximated.

impl Clone for TripleFunction[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<TripleFunction> for TripleFunction[src]

impl Debug for TripleFunction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> TripleApproximator for T where
    T: Approximator<Output = [f64; 3]>, 
[src]

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

Evaluate the first output value.

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

Evaluate the second output value.

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

Evaluate the third output value.

fn update_first<O: Optimiser>(
    &mut self,
    optimiser: &mut O,
    features: &Features,
    error: f64
) -> Result<()>
[src]

Update the first output value.

fn update_second<O: Optimiser>(
    &mut self,
    optimiser: &mut O,
    features: &Features,
    error: f64
) -> Result<()>
[src]

Update the second output value.

fn update_third<O: Optimiser>(
    &mut self,
    optimiser: &mut O,
    features: &Features,
    error: f64
) -> Result<()>
[src]

Update the third output value.

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> From<T> for T[src]

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]