Struct lfa::LFA [−][src]
pub struct LFA<I: ?Sized, P: Projector<I>, A: Approximator<Projection>> { pub projector: P, pub approximator: A, // some fields omitted }
Fields
projector: P
approximator: A
Methods
impl<I: ?Sized, P: Projector<I>, A: Approximator<Projection>> LFA<I, P, A>
[src]
impl<I: ?Sized, P: Projector<I>, A: Approximator<Projection>> LFA<I, P, A>
impl<I: ?Sized, P: Projector<I>> LFA<I, P, Simple>
[src]
impl<I: ?Sized, P: Projector<I>> LFA<I, P, Simple>
impl<I: ?Sized, P: Projector<I>> LFA<I, P, Multi>
[src]
impl<I: ?Sized, P: Projector<I>> LFA<I, P, Multi>
Trait Implementations
impl<I: Clone + ?Sized, P: Clone + Projector<I>, A: Clone + Approximator<Projection>> Clone for LFA<I, P, A>
[src]
impl<I: Clone + ?Sized, P: Clone + Projector<I>, A: Clone + Approximator<Projection>> Clone for LFA<I, P, A>
fn clone(&self) -> LFA<I, P, A>
[src]
fn clone(&self) -> LFA<I, P, A>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<I: ?Sized, P: Projector<I>, A: Approximator<Projection>> Approximator<I> for LFA<I, P, A>
[src]
impl<I: ?Sized, P: Projector<I>, A: Approximator<Projection>> Approximator<I> for LFA<I, P, A>
type Value = A::Value
fn evaluate(&self, input: &I) -> EvaluationResult<Self::Value>
[src]
fn evaluate(&self, input: &I) -> EvaluationResult<Self::Value>
Evaluate the function and return its value.
fn update(&mut self, input: &I, update: Self::Value) -> UpdateResult<()>
[src]
fn update(&mut self, input: &I, update: Self::Value) -> UpdateResult<()>
Update the approximator's estimate for the given input.
fn adapt(
&mut self,
new_features: &HashMap<IndexT, IndexSet>
) -> AdaptResult<usize>
[src]
fn adapt(
&mut self,
new_features: &HashMap<IndexT, IndexSet>
) -> AdaptResult<usize>
Adapt the approximator in light of newly discovered features.
impl<I, P, A> Parameterised for LFA<I, P, A> where
I: ?Sized,
P: Projector<I>,
A: Approximator<Projection> + Parameterised,
[src]
impl<I, P, A> Parameterised for LFA<I, P, A> where
I: ?Sized,
P: Projector<I>,
A: Approximator<Projection> + Parameterised,