[][src]Trait lfa::basis::EnumerableBasis

pub trait EnumerableBasis<T>: Basis<T> where
    Self::Value: Index<usize, Output = ActivationT>, 
{ fn ith(&self, input: T, index: IndexT) -> Result<ActivationT> { ... } }

Provided methods

fn ith(&self, input: T, index: IndexT) -> Result<ActivationT>

Compute the the ith element of the projection for the given input.

Note: the default implementation computes the full basis to access a single index. More computational efficient methods should be implemented where possible.

Loading content...

Implementors

impl<'a, T> EnumerableBasis<T> for UniformGrid where
    T: IntoIterator<Item = &'a f64>, 
[src]

impl<'a, T, H> EnumerableBasis<T> for TileCoding<H> where
    T: IntoIterator<Item = &'a f64>,
    H: BuildHasher
[src]

impl<I: Borrow<f64>, T: IntoIterator<Item = I>> EnumerableBasis<T> for Fourier[src]

impl<I: Borrow<f64>, T: IntoIterator<Item = I>> EnumerableBasis<T> for Polynomial where
    T::IntoIter: Clone
[src]

impl<I: Borrow<f64>, T: IntoIterator<Item = I>> EnumerableBasis<T> for Chebyshev where
    T::IntoIter: Clone
[src]

impl<T> EnumerableBasis<T> for Bias[src]

impl<T> EnumerableBasis<T> for Fixed<(usize, HashSet<IndexT>)>[src]

impl<T> EnumerableBasis<T> for Fixed<Vec<f64>>[src]

impl<T, B> EnumerableBasis<T> for L0Normaliser<B> where
    B: Basis<T, Value = Features>,
    B::Value: Index<usize, Output = ActivationT>, 
[src]

impl<T, B> EnumerableBasis<T> for L1Normaliser<B> where
    B: Basis<T, Value = Features>,
    B::Value: Index<usize, Output = ActivationT>, 
[src]

impl<T, B> EnumerableBasis<T> for L2Normaliser<B> where
    B: Basis<T, Value = Features>,
    B::Value: Index<usize, Output = ActivationT>, 
[src]

impl<T, B> EnumerableBasis<T> for LinfNormaliser<B> where
    B: Basis<T, Value = Features>,
    B::Value: Index<usize, Output = ActivationT>, 
[src]

impl<T, B1, B2> EnumerableBasis<T> for Stack<B1, B2> where
    T: Clone,
    B1: EnumerableBasis<T, Value = Features>,
    B2: EnumerableBasis<T, Value = Features>, 
[src]

impl<T, K> EnumerableBasis<T> for KernelBasis<Vec<f64>, K> where
    T: Borrow<[f64]>,
    K: for<'x> Kernel<&'x [f64]>, 
[src]

Loading content...