[][src]Struct lfa::PairFunction

pub struct PairFunction {
    pub weights: Weights,
}

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

Fields

weights: Weights

Approximation weights.

Methods

impl PairFunction[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 PairFunction[src]

impl Approximator for PairFunction[src]

type Output = [f64; 2]

The type of value being approximated.

impl Clone for PairFunction[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<PairFunction> for PairFunction[src]

impl Debug for PairFunction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> PairApproximator for T where
    T: Approximator<Output = [f64; 2]>, 
[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 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.

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]