pub struct SumSquareSub<'a> { /* private fields */ }Expand description
Compute the sum of squares of input with a bias subtracted.
This is a variant of SumSquare which subtracts a constant value from each
element before squaring it. A typical use case is to compute the variance of
a sequence, which is defined as mean((X - x_mean)^2).
Implementations§
Trait Implementations§
Source§impl SimdOp for SumSquareSub<'_>
impl SimdOp for SumSquareSub<'_>
Auto Trait Implementations§
impl<'a> Freeze for SumSquareSub<'a>
impl<'a> RefUnwindSafe for SumSquareSub<'a>
impl<'a> Send for SumSquareSub<'a>
impl<'a> Sync for SumSquareSub<'a>
impl<'a> Unpin for SumSquareSub<'a>
impl<'a> UnwindSafe for SumSquareSub<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more