Trait lfa::projection::Projector
[−]
[src]
pub trait Projector<I: ?Sized> { fn project(&self, input: &I) -> Projection; fn dim(&self) -> usize; fn size(&self) -> usize; fn activity(&self) -> usize; fn equivalent(&self, other: &Self) -> bool; fn project_expanded(&self, input: &I) -> Vector<f64> { ... } fn expand_projection(&self, projection: Projection) -> Vector<f64> { ... } }
Trait for basis projectors.
Required Methods
fn project(&self, input: &I) -> Projection
Project data from an input space onto the basis.
fn dim(&self) -> usize
Return the number of dimensions in the basis space.
fn size(&self) -> usize
Return the number of features in the basis space.
fn activity(&self) -> usize
Return the maximum number of active features in the basis space.
fn equivalent(&self, other: &Self) -> bool
Check for equivalence with another projector of the same type.
Provided Methods
fn project_expanded(&self, input: &I) -> Vector<f64>
Project data from an input space onto the basis and convert into a raw, dense vector.
fn expand_projection(&self, projection: Projection) -> Vector<f64>
Expand and normalise a given projection, and convert into a raw, dense vector.
Implementors
impl Projector<[f64]> for RBFNetwork
impl Projector<[f64]> for Fourier
impl Projector<[f64]> for Polynomial
impl<H: BuildHasher> Projector<[f64]> for TileCoding<H>