pub struct WelfordVar { /* private fields */ }Expand description
pandas’ online variance: its cython group_var folds each float as
Welford (mean += (v - old) / n; m2 += (v - mean) * (v - old)) and
answers m2 / (n - ddof), std its square root and sem
sqrt(m2 / (n - ddof) / n) - where the two-pass form differs in the
last bits (a constant group’s var is 0.0, not 1e-34;
br-frankenpandas-xhogl).
Implementations§
Source§impl WelfordVar
impl WelfordVar
Trait Implementations§
Source§impl Clone for WelfordVar
impl Clone for WelfordVar
impl Copy for WelfordVar
Source§impl Debug for WelfordVar
impl Debug for WelfordVar
Source§impl Default for WelfordVar
impl Default for WelfordVar
Source§impl PartialEq for WelfordVar
impl PartialEq for WelfordVar
impl StructuralPartialEq for WelfordVar
Auto Trait Implementations§
impl Forget for WelfordVar
impl Freeze for WelfordVar
impl Move for WelfordVar
impl RefUnwindSafe for WelfordVar
impl Send for WelfordVar
impl Sync for WelfordVar
impl Unpin for WelfordVar
impl UnsafeUnpin for WelfordVar
impl UnwindSafe for WelfordVar
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