[−][src]Struct lfa::TripleFunction
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]
fn weights(&self) -> Weights
[src]
fn weights_dim(&self) -> [usize; 2]
[src]
fn weights_view(&self) -> WeightsView
[src]
fn weights_view_mut(&mut self) -> WeightsViewMut
[src]
impl Approximator for TripleFunction
[src]
type Output = [f64; 3]
The type of value being approximated.
fn n_outputs(&self) -> usize
[src]
fn evaluate(&self, features: &Features) -> Result<Self::Output>
[src]
fn update<O>(&mut self, opt: &mut O, f: &Features, es: [f64; 3]) -> Result<()> where
O: Optimiser,
[src]
O: Optimiser,
impl Clone for TripleFunction
[src]
fn clone(&self) -> 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]
fn eq(&self, other: &TripleFunction) -> bool
[src]
fn ne(&self, other: &TripleFunction) -> bool
[src]
impl Debug for TripleFunction
[src]
Auto Trait Implementations
impl Unpin for TripleFunction
impl Sync for TripleFunction
impl Send for TripleFunction
impl UnwindSafe for TripleFunction
impl RefUnwindSafe for TripleFunction
Blanket Implementations
impl<T> TripleApproximator for T where
T: Approximator<Output = [f64; 3]>,
[src]
T: Approximator<Output = [f64; 3]>,
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]
&mut self,
optimiser: &mut O,
features: &Features,
error: f64
) -> Result<()>
Update the first output value.
fn update_second<O: Optimiser>(
&mut self,
optimiser: &mut O,
features: &Features,
error: f64
) -> Result<()>
[src]
&mut self,
optimiser: &mut O,
features: &Features,
error: f64
) -> Result<()>
Update the second output value.
fn update_third<O: Optimiser>(
&mut self,
optimiser: &mut O,
features: &Features,
error: f64
) -> Result<()>
[src]
&mut self,
optimiser: &mut O,
features: &Features,
error: f64
) -> Result<()>
Update the third output value.
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,