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

Project data from an input space onto the basis.

Return the number of dimensions in the basis space.

Return the number of features in the basis space.

Return the maximum number of active features in the basis space.

Check for equivalence with another projector of the same type.

Provided Methods

Project data from an input space onto the basis and convert into a raw, dense vector.

Expand and normalise a given projection, and convert into a raw, dense vector.

Implementors