Struct lfa::SimpleLinear
[−]
[src]
pub struct SimpleLinear<I: ?Sized, P: Projector<I>> { pub projector: P, pub weights: Vector<f64>, // some fields omitted }
Fields
projector: P
weights: Vector<f64>
Methods
impl<I: ?Sized, P: Projector<I>> SimpleLinear<I, P>
[src]
fn new(projector: P) -> Self
[src]
fn assign(&mut self, values: &Vector<f64>)
[src]
fn evaluate_projection(&self, p: &Projection) -> f64
[src]
fn update_projection(&mut self, p: &Projection, error: f64)
[src]
Trait Implementations
impl<I: Clone + ?Sized, P: Clone + Projector<I>> Clone for SimpleLinear<I, P>
[src]
fn clone(&self) -> SimpleLinear<I, P>
[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