pub struct LFA<I: ?Sized, P: Projector<I>, A: Approximator<Projection>> {
pub projector: P,
pub approximator: A,
/* private fields */
}
Expand description
Linear function approximator.
Fields§
§projector: P
§approximator: A
Implementations§
source§impl<I: ?Sized, P: Projector<I>, A: Approximator<Projection>> LFA<I, P, A>
impl<I: ?Sized, P: Projector<I>, A: Approximator<Projection>> LFA<I, P, A>
source§impl<I: ?Sized, P: Projector<I>> LFA<I, P, ScalarFunction>
impl<I: ?Sized, P: Projector<I>> LFA<I, P, ScalarFunction>
pub fn scalar_valued(projector: P) -> Self
source§impl<I: ?Sized, P: Projector<I>> LFA<I, P, VectorFunction>
impl<I: ?Sized, P: Projector<I>> LFA<I, P, VectorFunction>
pub fn vector_valued(projector: P, n_outputs: usize) -> Self
Trait Implementations§
source§impl<I, P, A> Approximator<I> for LFA<I, P, A>where
I: ?Sized,
P: Projector<I>,
A: Approximator<Projection>,
impl<I, P, A> Approximator<I> for LFA<I, P, A>where
I: ?Sized,
P: Projector<I>,
A: Approximator<Projection>,
type Value = <A as Approximator<Projection>>::Value
source§fn evaluate(&self, input: &I) -> EvaluationResult<Self::Value>
fn evaluate(&self, input: &I) -> EvaluationResult<Self::Value>
Evaluate the function and return its value.
source§impl<I: Clone + ?Sized, P: Clone + Projector<I>, A: Clone + Approximator<Projection>> Clone for LFA<I, P, A>
impl<I: Clone + ?Sized, P: Clone + Projector<I>, A: Clone + Approximator<Projection>> Clone for LFA<I, P, A>
source§impl<'de, I: ?Sized, P: Projector<I>, A: Approximator<Projection>> Deserialize<'de> for LFA<I, P, A>where
P: Deserialize<'de>,
A: Deserialize<'de>,
impl<'de, I: ?Sized, P: Projector<I>, A: Approximator<Projection>> Deserialize<'de> for LFA<I, P, A>where
P: Deserialize<'de>,
A: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more