pub struct DataPoint {
pub in_vec: Array1<f32>,
pub out_vec: Array1<f32>,
pub weight: f32,
}Expand description
A weighted data-point for regressions
Fields§
§in_vec: Array1<f32>§out_vec: Array1<f32>§weight: f32Trait Implementations§
Source§impl AddAssign<&DataPoint> for NormalInverseWishart
impl AddAssign<&DataPoint> for NormalInverseWishart
Source§fn add_assign(&mut self, other: &DataPoint)
fn add_assign(&mut self, other: &DataPoint)
Updates this NormalInverseWishart distribution to incorporate
regression information from the given DataPoint.
Source§impl SubAssign<&DataPoint> for NormalInverseWishart
impl SubAssign<&DataPoint> for NormalInverseWishart
Source§fn sub_assign(&mut self, other: &DataPoint)
fn sub_assign(&mut self, other: &DataPoint)
Updates this NormalInverseWishart distribution to remove
regression information from the given DataPoint.
Auto Trait Implementations§
impl Freeze for DataPoint
impl RefUnwindSafe for DataPoint
impl Send for DataPoint
impl Sync for DataPoint
impl Unpin for DataPoint
impl UnwindSafe for DataPoint
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