pub struct LinearPredictorBlock<X> {
pub x: X,
}Expand description
Linear predictor block backed by a DesignMatrix.
This is the explicit adapter from matrix-based predictors to the more
general PredictorBlock extension point.
Fields§
§x: XDesign matrix used by this predictor.
Implementations§
Source§impl<X> LinearPredictorBlock<X>
impl<X> LinearPredictorBlock<X>
Sourcepub fn into_inner(self) -> X
pub fn into_inner(self) -> X
Returns the wrapped design matrix.
Trait Implementations§
Source§impl<X: Clone> Clone for LinearPredictorBlock<X>
impl<X: Clone> Clone for LinearPredictorBlock<X>
Source§fn clone(&self) -> LinearPredictorBlock<X>
fn clone(&self) -> LinearPredictorBlock<X>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<X: Copy> Copy for LinearPredictorBlock<X>
Source§impl<X: Debug> Debug for LinearPredictorBlock<X>
impl<X: Debug> Debug for LinearPredictorBlock<X>
Source§impl<X: Default> Default for LinearPredictorBlock<X>
impl<X: Default> Default for LinearPredictorBlock<X>
Source§fn default() -> LinearPredictorBlock<X>
fn default() -> LinearPredictorBlock<X>
Returns the “default value” for a type. Read more
impl<X: Eq> Eq for LinearPredictorBlock<X>
Source§impl<X: PartialEq> PartialEq for LinearPredictorBlock<X>
impl<X: PartialEq> PartialEq for LinearPredictorBlock<X>
Source§fn eq(&self, other: &LinearPredictorBlock<X>) -> bool
fn eq(&self, other: &LinearPredictorBlock<X>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<X> PredictorBlock for LinearPredictorBlock<X>where
X: DesignMatrix,
impl<X> PredictorBlock for LinearPredictorBlock<X>where
X: DesignMatrix,
impl<X> StructuralPartialEq for LinearPredictorBlock<X>
Auto Trait Implementations§
impl<X> Freeze for LinearPredictorBlock<X>where
X: Freeze,
impl<X> RefUnwindSafe for LinearPredictorBlock<X>where
X: RefUnwindSafe,
impl<X> Send for LinearPredictorBlock<X>where
X: Send,
impl<X> Sync for LinearPredictorBlock<X>where
X: Sync,
impl<X> Unpin for LinearPredictorBlock<X>where
X: Unpin,
impl<X> UnsafeUnpin for LinearPredictorBlock<X>where
X: UnsafeUnpin,
impl<X> UnwindSafe for LinearPredictorBlock<X>where
X: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more