Enum lfa::projection::Projection
[−]
[src]
pub enum Projection { Dense(Vector<f64>), Sparse(Vector<usize>), }
Projected feature vector representation.
Variants
Dense(Vector<f64>)
Dense, floating-point activation vector.
Sparse(Vector<usize>)
Sparse, index-based activation vector.
Methods
impl Projection
[src]
fn z(&self) -> f64
[src]
Compute the l1 normalisation constant of the projection.
fn activity(&self) -> usize
[src]
Return the maximum number of active features in the basis space.
Trait Implementations
impl Debug for Projection
[src]
impl Clone for Projection
[src]
fn clone(&self) -> Projection
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more